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
  • Here EEPROM is connected to Rx-Tx pins.. :o

    in a way yes, but actually no

    the pins, in this case are not used as Rx and Tx, but as regular port pins.

    connect your EEPROM to two other pins, preferably those used for hardware I²C by a better chip than the one you have chosen. Based on the impression of your abilities your confusion gives me, I will not recommend that you tackle bit-banged I²C

    Erik

Reply
  • Here EEPROM is connected to Rx-Tx pins.. :o

    in a way yes, but actually no

    the pins, in this case are not used as Rx and Tx, but as regular port pins.

    connect your EEPROM to two other pins, preferably those used for hardware I²C by a better chip than the one you have chosen. Based on the impression of your abilities your confusion gives me, I will not recommend that you tackle bit-banged I²C

    Erik

Children