Hi
I am using RTC IC FM31/256 which is connected at I2C0 on portB of my LM3s6911 board. I have enabled the RTC oscillator , then make Read reg 1 to enable read and then make it 0 to transfer RTC. Then I am trying to read the RTC reg 7bit for sec,min,hour,day,date,month and year.
My RTC slave address is 0xD6.
But I am not able to read the RTC registers. Will you plz help me out with my coding...
Post edited by: print, at: 2008/07/02 01:11
I am using RTC IC FM31/256 which is connected at I2C0 on portB of my LM3s6911 board. I have enabled the RTC oscillator , then make Read reg 1 to enable read and then make it 0 to transfer RTC. Then I am trying to read the RTC reg 7bit for sec,min,hour,day,date,month and year.
My RTC slave address is 0xD6.
But I am not able to read the RTC registers. Will you plz help me out with my coding...
Code: |
|
Post edited by: print, at: 2008/07/02 01:11