[51] Communication Between Two at89s52 microcontroller using i2c

Status
Not open for further replies.

Azzy anxious

Junior Member level 2
Joined
Jan 28, 2014
Messages
23
Helped
1
Reputation
2
Reaction score
1
Trophy points
3
Activity points
161
Hi,
Every one First of all i wanna thank this forum it is much helpfull for begainers

Sir
I want to communicate two microcontroller (at89s52) through i2c i m totally new in this feild i hav knowlegde about i2c ..

But sir i want help frm u guys how can i communicate them plz help me with a short example.........
 


no there is no any specific reason but sir i working on a fire alarm project where i hav to communicate them can u plz tell me abt uart pins

can u plz tell me about UART pins in at89s52
 

Refer to 89s52 datasheet, Pin 3.0 & 3.1 are dedicated UART pins RXD & TXD. RXD receives serial data while TXD transmits. But there are lots of modes for that. You have to configure UART by generating specific baud rate by T2CON register, setting SCON register, reading or writing the transmitting data in SBUF register. Its easy to configure unlike I2C.
There are lot of things to know. Refer to the following.

http://www.atmel.com/Images/doc4316.pdf
**broken link removed**
**broken link removed**
**broken link removed**

Do some google search first...
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…