We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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!
Hello sir, I have the same confusion.. i.e. can we use any PINS to interface EEPROM to controller using I2C. If it is possible then he can do it with AT89C51 also, can't he? i.e. He can interface his gsm modem using serial port available an he can use other pins to interface EEPROM and in that case he can use burner kits to burn his IC.
Please correct me if i am wrong..
Thank you :)
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!
In case of gsm modem, i meant "UART" only.. :)
Nice explanation... :)
i got this link..
" href= "http://www.engineersgarage.com/microcontroller/8051projects/interface-serial-eeprom-24c02-AT89C51-circuit"> www.engineersgarage.com/.../interface-serial-eeprom-24c02-AT89C51-circuit
This is what i wanted to say.. Hope its right :) What you say sir?