I'm using the lpc2138: Q. How do you read the clock registers without risk of 'rollover'? For example, I know of clocks that have a dual-port ram between the actual internal clock registers and the registers that appear in the address space. You can disable/enable updating the dual-port ram, thereby allowing the muliple clock registers to be read without risk of 'rollover'. As best as I can determine, there are bits that will start/stop the lpc2138 clock. Are these really bits that enable/disable a dual port ram, or does it really stop the clock? It it really stops the clock then that is unfortunate. A workaround is to run a sub-second timer routine that reads the second counter, waiting for it to increment, then you can read the rest of the consolidated registers without fear of rollover. ebarker123
Message
real time clock
2006-03-07 by ebarker123
Attachments
- No local attachments were found for this message.