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

is this possible to use same serial port of 89s52 for different purposes?

In my project i want to interface a GSM modem and 24c02C i.e EEPROM (I2C based)to microcontroller.
so now i am not understanding whether can i use same Rx-Tx pins to interface microcontroller (89s52) to EEPROM and GSM modem as well?? if not then is there any other microcontroller of AT89cxx/AT89sxx family with 2 serial ports?
and which will support embedded c and assembly too!

Parents
  • Why would you connect an I2C device to the RX and TX pin of an UART? A UART is not designed to communicate with an I2C device. An I2C device has data and clock. Not RX and TX. It is a synchronous serial interface, while a UART implements an asynchronous serial interface.

    Buy a processor with 100 UART and that will still make you happy if the processor doesn't also have I2C support. I2C != UART != SPI != Ethernet != USB != ...

Reply
  • Why would you connect an I2C device to the RX and TX pin of an UART? A UART is not designed to communicate with an I2C device. An I2C device has data and clock. Not RX and TX. It is a synchronous serial interface, while a UART implements an asynchronous serial interface.

    Buy a processor with 100 UART and that will still make you happy if the processor doesn't also have I2C support. I2C != UART != SPI != Ethernet != USB != ...

Children