RA8804 CE
Page - 10
ETM60E-02
8.2.3. Alarm registers
Address
Function
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
08
MIN Alarm
AE
40
20
10
8
4
2
1
09
HOUR Alarm
AE
20
10
8
4
2
1
0A
WEEK Alarm
AE
6
5
4
3
2
1
0
DAY Alarm
20
10
8
4
2
1
The alarm interrupt function is used, along with the AEI, 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 /INT pin
goes to low level and
“1” is set to the AF bit to report that an alarm interrupt event has occurred.
8.2.4. Fixed-cycle timer control registers
Address
Function
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
0B
Timer Counter 0
128
64
32
16
8
4
2
1
0C
Timer Counter 1
32768
16384
8192
4096
2048
1024
512
256
1B
Setup of Timer
TSTP
TRES
1C
Current value of Timer 0
128
64
32
16
8
4
2
1
1D
Current value of Timer 1
32768
16384
8192
4096
2048
1024
512
256
1E
Current value of Timer 2 8388608 4194304 2097152 1048576 524288 262144 131072
65536
1F
Timer Counter 2
8388608 4194304 2097152 1048576 524288 262144 131072
65536
These registers are used to set the preset countdown value for the fixed-cycle timer interrupt function.
The TE, TF, TIE, and TSEL0/1 bits are also used to set the fixed-cycle timer interrupt function.
When the value in the above fixed-cycle timer control register just changes from 01h to 00h, the /INT pin
goes to low level and
“1” is set to the TF bit to report that a fixed-cycle timer interrupt event has occurred.
8.2.5. Extension register
Address
Function
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
0D
Extension Register
TEST
WADA
USEL
TE
FSEL1
FSEL0
TSEL1
TSEL0
(Default)
(0)
(0)
(0)
(0)
(0)
(0)
(1)
(0)
The default value is loaded after powering up from 0 V, automatically.
TEST must be always cleared by a zero.
This register is used to specify the target for the alarm function or time update interrupt function and to
select or set operations such as fixed-cycle timer operations.
1) TEST bit
This is the manufacturer's test bit. Its value should always be
“0”.
Be careful to avoid writing a
“1” to this bit when writing to other bits.
TEST
Data
Description
Write/Read
0
Normal operation mode
Default
1
Setting prohibited (manufacturer's test bit)
2) WADA (Week Alarm/Day Alarm) bit
This bit is used to specify either WEEK or DAY as the target of the alarm interrupt function.
Writing a
“1” to this bit specifies a DAY alarm, meaning the alarm interrupt is initiated independent of the actual
day when the set time is reached.
Writing a
“0” to this bit specifies a WEEK alarm, so an alarm interrupt is only generated when the set time is
reached on a dedicated day of a week.