Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/25/02 16:48
Read: times


 
#33136 - RE: i2c
Hi Mak,

The 8583 handles year differently than other RTCs I've seen. Your two bits for year are simply to handle the four year cycle for leap years, so month is incremented properly. "Year" should probably be called "leap year." As far as the actual year is concerned, that's up to you to handle.

Thus when you set the year, you probably will set aside a ram location to store it, and load the 2-bit year according to the year. Then you need to notice when the year changes, and increment the year manually. For year 2000, "leap year" would be 0; for year 2002, "leap year" would be 2, etc.

For our projects we chose the PCF8563, which has two digits for year, and a century flag.

Dennis



List of 10 messages in thread
TopicAuthorDate
i2c            01/01/70 00:00      
RE: i2c            01/01/70 00:00      
RE: i2c            01/01/70 00:00      
RE: i2c            01/01/70 00:00      
RE: i2c            01/01/70 00:00      
RE: i2c            01/01/70 00:00      
finaly done but......            01/01/70 00:00      
RE: finaly done but......            01/01/70 00:00      
RE: i2c            01/01/70 00:00      
RE: i2c            01/01/70 00:00      

Back to Subject List