Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[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
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top