RX
4571 LC
Page - 15
ETM18E-04
13.1.5. Alarm registers ( Reg - 8[h]
A[h] )
Address [h]
Function
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
8
MIN Alarm
AE
40
20
10
8
4
2
1
9
HOUR Alarm
AE
20
10
8
4
2
1
WEEK Alarm
6
5
4
3
2
1
0
A
DAY Alarm
AE
20
10
8
4
2
1
The alarm interrupt function is used, along with the AE, AF, and WADA bits, to set alarms for specified date, day,
hour, and minute values.
When the settings in the above alarm registers and the WADA bit match the current time, the /IRQ pin goes to
low level and "1" is set to the AF bit to report that and alarm interrupt event has occurred.
For details, see "13.3. Alarm Interrupt Function".
13.1.6. Timer setting and Timer counter register ( Reg - C[h]
D[h] )
Address [h]
Function
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
B
Timer Setup
128
64
32
16
8
4
2
1
C
Timer Counter
2048
1024
512
256
This register is used to set the default (preset) value for the counter. Any count value from 1 (001 h) to
4095 (FFFh) can be set
To use the fixed-cycle timer interrupt function, the TE, TF, TIE, TSEL0, and TSEL1 bits are set and used.
When this down counter's count value changes from 001h to 000h, when TF bit = "1", or when the /IRQ pin is at
low level ("L"), it indicates that a fixed-cycle timer interrupt event has occurred.
When the fixed-cycle timer interrupt function is not being used, the fixed-cycle timer control register (Reg – B to
C) can be used as a RAM register. In such cases, stop the fixed-cycle timer function by writing "0" to the TE and
TIE bits.
For details, see "13.2. Fixed-cycle Timer Interrupt Function ".