Fujitsu FR60 Computer Hardware User Manual


  Open as PDF
of 1038
 
958
Chapter 49 Real-Time Clock
6.Setting
6. Setting
*: For the setting procedure, refer to the section indicated by the number.
*: For the setting procedure, refer to the section indicated by the number.
*: For the setting procedure, refer to the section indicated by the number.
*: For the setting procedure, refer to the section indicated by the number.
*: For the setting procedure, refer to the section indicated by the number.
Table 6-1 Required Settings to Run Real-time Clock
Setting Setting Registers
Setting
Procedure *
Set a reload value to the sub-second registers.
Sub-second registers
(WTBR0,WTBR1 and WTBR2)
See 7.1.
Initialize Real-time Clock. RTC control register (WTCR) See 7.2.
Set time (hour/minute/second).
Hour/minute/second registers
(WTHR/WTMR/WTSR)
See 7.3.
Activate Real-time Clock. RTC control register (WTCR) See 7.4.
Table 6-2 Required Settings to Know Time
Setting Setting Registers
Setting
Procedure *
Read time.
Hour/minute/second registers
(WTHR/WTMR/WTSR)
See 7.6.
Table 6-3 Required Settings to Stop Real-Time Clock
Setting Setting Registers
Setting
Procedure *
Stop Real-time Clock. RTC control register (WTCR) See 7.7.
Table 6-4 Required Settings to Generate Interrupts to Real-time Clock
Setting Setting Registers
Setting
Procedure *
Set a RTC interrupt vector and RTC interrupt level.
See “Chapter 24 Interrupt Control (Page
No.311)”.
See 7.10.
Enable RTC interrupts.
Clear interrupt requests.
Enable interrupt requests.
RTC control register (WTCR) See 7.10.
Table 6-5 Required Settings to select clock source to Real-time Clock
Setting Setting Registers
Setting
Procedure *
Set a RTC clock source.
See “4.4 CSCFG: Clock Source Configuration
Register (Page No.196)”.