|
RV5C339A_03 Datasheet, PDF (44/46 Pages) RICOH electronics devices division – 3-WIRE SERIAL INTERFACE REAL-TIME CLOCK IC WITH VOLTAGE MONITORING FUNCTION | |||
|
◁ |
RV5C339A
8.3 Reading Time and Calendar Data
8.3-1 Ordinary Process of Reading Time and Calendar Data
*1) This step of waiting is detailed in â1.5 Considerations in Reading and
Writing Time Dataâ.
Wait for 31µs
*1
Read from Time Counter
and Calendar Counter
8.3-2 Basic Process of Reading Time and Calendar Data Synchronized with Periodic Interrupt
Set Periodic Interrupt
Cycle Selection Bits
*1
Generate Interrupt in CPU
NO
CTFG=1?
YES
Read from Time Counter
Other Interrupt
and Calendar Counter *2 Processes
*1) This step is intended to select the level mode as a waveform mode for the
periodic interrupt function.
*2) If this step is completed within 1 second, the step of waiting described in
â8.3-1 Ordinary Process of Reading Time and Calendar Dataâ above need
not be conducted. This step is detailed in â1.5 Considerations in Reading
and Writing Time Dataâ.
*3) This step is intended to set the CTFG bit to 0 in the control register 2 to
cancel an interrupt to the CPU.
Write âÃ,1,Ã,1,Ã,0,1,1â *3
to Control Register 2
44
|
▷ |