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
  • This has nothing to do with Keil, and is not specific to the 8051:

    "can we use any PINS to interface EEPROM to controller using I2C"

    No, you can't just use any pins - you must check the microcontroller's datasheet to determine what pins are suitable to use for I2C.
    In particular, note that I2C requires open-drain (or equivalent) drivers.

    Preferably, if you need to use I2C, you would select a chip with I2C hardware built-in.
    In that case, the pins for I2C use would be clearly defined - in the datasheet.

    But you can not use a UART for I2C!

    "He can interface his GSM modem using serial port"

    There are many different types of "serial port" - I2C, SPI, UART, etc. So you need to be clear what type of "serial port", specifically, you are talking about.

    For a GSM modem, a UART would almost certainly be required - but, as ever, you must check the datasheet to be sure.

    "he can use other pins to interface EEPROM"

    As above.

    "and in that case he can use burner kits to burn his IC"

    Sorry - that seems an entirely unrelated comment!

Reply
  • This has nothing to do with Keil, and is not specific to the 8051:

    "can we use any PINS to interface EEPROM to controller using I2C"

    No, you can't just use any pins - you must check the microcontroller's datasheet to determine what pins are suitable to use for I2C.
    In particular, note that I2C requires open-drain (or equivalent) drivers.

    Preferably, if you need to use I2C, you would select a chip with I2C hardware built-in.
    In that case, the pins for I2C use would be clearly defined - in the datasheet.

    But you can not use a UART for I2C!

    "He can interface his GSM modem using serial port"

    There are many different types of "serial port" - I2C, SPI, UART, etc. So you need to be clear what type of "serial port", specifically, you are talking about.

    For a GSM modem, a UART would almost certainly be required - but, as ever, you must check the datasheet to be sure.

    "he can use other pins to interface EEPROM"

    As above.

    "and in that case he can use burner kits to burn his IC"

    Sorry - that seems an entirely unrelated comment!

Children