UART Transmission with atmega328p

For general Flowcode discussion that does not belong in the other sections.
mnfisher
Valued Contributor
Posts: 1628
http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: UART Transmission with atmega328p

Post 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

ChrisT66
Posts: 103
Joined: Mon Dec 07, 2020 12:47 pm
Been thanked: 1 time

Re: UART Transmission with atmega328p

Post by ChrisT66 »

Unfortunately it doesn't work. Maybe you can still find the error. it's not urgent.

ChrisT66
Posts: 103
Joined: Mon Dec 07, 2020 12:47 pm
Been thanked: 1 time

Re: UART Transmission with atmega328p

Post by ChrisT66 »

Only the pos counter was missing.
Really cool with the If pos &1, it took me a while to get it....

mnfisher
Valued Contributor
Posts: 1628
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: UART Transmission with atmega328p

Post by mnfisher »

Thanks - yes I see, managed to delete the increment of pos. Oops.

Is it working OK?

Martin

ChrisT66
Posts: 103
Joined: Mon Dec 07, 2020 12:47 pm
Been thanked: 1 time

Re: UART Transmission with atmega328p

Post by ChrisT66 »

It works great, thanks again for the great help!

Chris
Attachments
IBUS4.fcfx
(26.35 KiB) Downloaded 135 times

Post Reply