This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Interfacing 8051 UART to I2C slave

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

Parents
  • 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

Reply
  • 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

Children