Feb 14, 2015 #1 A 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
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
Feb 14, 2015 #2 M milan.rajik Banned Joined Apr 1, 2013 Messages 2,524 Helped 540 Reputation 1,078 Reaction score 524 Trophy points 1,393 Activity points 0 You have to use Software I2C.
Feb 14, 2015 #3 paulfjujo Advanced Member level 4 Joined Jun 9, 2008 Messages 1,466 Helped 298 Reputation 596 Reaction score 283 Trophy points 1,363 Location France 01800 Activity points 10,561 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..
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..
Feb 14, 2015 #4 G Gorgon Full Member level 6 Joined Nov 10, 2005 Messages 345 Helped 75 Reputation 150 Reaction score 67 Trophy points 1,308 Location Norway Activity points 3,787 After the I2C standard, both SCL and SDA must be open collector output types.
Feb 14, 2015 #5 A arjun manoharan Newbie level 2 Joined Feb 13, 2015 Messages 2 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 15 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
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