Hi all,
I need a little assistance wrapping my head around this issue. It's not strictly an arm/cortex problem, so everyone feel free to chime in! Anyways, to the issue...
I am receiving serial data at one of the pins on my microcontroller. So for example, at PA0 (port A, pin 0), I might get a feed of 010010000. What is the best way to accept this data/modify it so that I can transmit it through UART.
My current method was to create an 8 array element, and then saving each value. But I don't think that would work because an 8 array element does not necessarily mean 8 bits, which is what my UART is setup to transmit... I'm not sure what the best way would be to handle this problem. Any help would be appreciated, thanks!
What is the best way to accept this data/modify it so that I can transmit it through UART.
Bitwise shift is the obvious choice, no? Are you aware of the bit manipulation capabilities of the language? Loop up operators <<, >>, |, &, ~, ^.
Sorry, I'm not too familiar with working with bits in C programming, thanks for the suggestion though, I shall look into it.
That's definitely something that you need to rectify urgently!
Some links here: blog.antronics.co.uk/.../