Page 6 of 6
Re: UART Transmission with atmega328p
Posted: Thu Oct 17, 2024 10:20 am
by mnfisher
I forgot to check that channel is < 6
On my phone at the moment:
Either increase the size of the data array to 15 (a workaround)
Or Add 'if channel < 6' to the interrupt handler
Re: UART Transmission with atmega328p
Posted: Thu Oct 17, 2024 12:58 pm
by ChrisT66
Unfortunately it doesn't work. Maybe you can still find the error. it's not urgent.
Re: UART Transmission with atmega328p
Posted: Thu Oct 17, 2024 1:45 pm
by ChrisT66
Only the pos counter was missing.
Really cool with the If pos &1, it took me a while to get it....
Re: UART Transmission with atmega328p
Posted: Thu Oct 17, 2024 8:56 pm
by mnfisher
Thanks - yes I see, managed to delete the increment of pos. Oops.
Is it working OK?
Martin
Re: UART Transmission with atmega328p
Posted: Fri Oct 18, 2024 4:56 am
by ChrisT66
It works great, thanks again for the great help!
Chris