I could separate 16 bit data into two 8 bits,but i couldn't figure out how to transmit,receive and combine them back.
-Newbie to PSoc3
If you have split the data array as bytes then all you need to do is PutChar() and GetChar() to send and receive respectively.
Tried it..could u please elaborate?
uint16_t myint16=((uint16_t)firstbyte)<<8 + secondbyte;
ive got that..but how to write a logic for transmission and reception?..how will the uart differentiate the first and second bytes?
thanks in advance
When you configure the UART to send 8 bits, then handling high and low byte is up to your program. You just need to define which one to send first. Then the receiving end takes them in this order and combines them together.
Thanks a lot!!...It Worked
Can you please share the code for 16 bit data transfer in 8 Bit UART as an example. I need the same for my project and want to try this possibility for my case.
Hello dhans..sorry for the delay..please give me your mail id so that i can share the code.