Send 2 bytes of data through uart

Status
Not open for further replies.

xilinx1001

Member level 3
Joined
Apr 3, 2013
Messages
60
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,781
Hi,

I am getting data of 9 bits from range sensor.

I can transfer only 1 byte(8 bits) of data at a time.

So, how can I transfer 9 bits of data like 8bits one time and another 8 bits another time


Thanks in advance
 

You only transmit fixed-length data. If you need to transmit 9 bits, then you are going to have to transmit two bytes with the second byte containing 7 dummy bits.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…