Other Parts Discussed in Thread: SN74LV8153
Did I get it rigth??
from the data sheet:
"The serial data should be sent as 2START-3ADDRESS-4DATA-1STOP. Two consecutive serial-data frames transmit 8 bits of data. The first frame includes the lower four bits of data (D0-D3), and the second frame includes the upper four bits (D4-D7).
The order of the two start bits must be 0, then 1 in any frame;..."
This SN74LV8153-Q1 serial to paralel converter is compatible with UART serial data format. The UART data frame is : 1start BIt -- 8 data bits -- parity bit -- stop bit.
the UART trasmiter will add the start, stop and parity bit, then, I have 8 data bits I can manipulate to make the (2START-3ADDRESS-4DATA-1STOP).
The start bit in UART protocol is always logic 0.
then I will set my first data bit to logic 1 to comply with the two startbits SN74LV8153-Q1 data format
then the 2rd, 3th anf 4th bits are the adrress
then the last 4 bits will be the data
data frame: blue set by UART transmiter, green data set in the UART transmiter by user.
Start Bit always 0 // firts data bit set to 1 // address 3 bits // data 4 bits// stop
So from the 8 bits of UART data frame, I have to set
bit 0 = 1 second start bit of SN74LV8153-Q
bit 1,2,3 = address
bit 4,5,6,7 = data