[51] Should i implement I2C protocol for RTC always.

Status
Not open for further replies.

arjun manoharan

Newbie level 2
Joined
Feb 13, 2015
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
15
Hi,

I am a newbie to microcontrollers.I want to use a RTC(ds1307) with my AT89s52,so my question is should i implement I2C bus protocol.

I wish to connect the same in port 2.I don't and will not have any other device connected in that port.Please help me out.


Thank You
 

hello,

if you won't use I2C, you can use a RTC DS1302 in software SPI mode..instead.
or milan.rajik solution to use any pin to drive SCL and SDA.
but SDA pin must be open collector type..
 
After the I2C standard, both SCL and SDA must be open collector output types.
 

Thank u for all the reply .

I saw the code for I2C it is very big for me because i don't have any experience with embedded system and this is my first task.

Can i use an I2C to UART convertor with my at89s52?
I so then should i create a software module for I2C protocol.

The next question is->

Can i have 2 devices using SPI protocol running at the same time but however using different pins.

Thank You
 

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…