Does anyone have any ideas on interfacing the standard 8051 UART in mode 0 to interface to an I2C slave? I was thinking of writing the address of the slave, then shifting the acknowledge back in immediatley after. Any feedback would be appreciated. Matt
hi, A UART is asynchronous (hence the 'A'); there's no extra clock line, Not always. Read some more about UART mode 0 (shift register mode). In this mode, UART provides separate data line and clock line. A UART has separate transmit and receive pins, and you'd run into interesting problems with who drives the line at what time Again - not always. In mode 0 UART provides bidirectional line RX for both receive and transmit. Line TX is used for clock out only. Regards, Oleg
"Not always. Read some more about UART mode 0 (shift register mode). In this mode, UART provides separate data line and clock line." To be pedantic, we could say that the 8051's Serial Interface is not acting as a UART in this mode... ;-)
And the ACK-Flag ? How can you test this ? per software ? seperate 9 clock ? Not really !