I am having a problem with my real time clock. I can set it, but then it does not ever move until it is set again. Below is the code used to set it. I don't do anything else to activate it or turn it on. I assume if we have hooked up the crystal correctly it will just take off clocking. Is that correct or is there a register I need to change. CCR = 0x10; YEAR = year = setYear; MONTH = month = setMonth; DOM = dom = setDay; DOW = dow = setDow; HOUR = hour = setHour; MIN = minute = setMinute; SEC = second = setSecond; isLeapYear = (!(year & 0x03)); DOY = doy = getDoy( year, month, dom ); CCR = 0x11;
Message
Real Time Clock issues
2006-02-01 by mhaines4102
Attachments
- No local attachments were found for this message.