Alarm Registers; Fixed-Cycle Timer Control Registers; Extension Register - Epson RA8804 CE Applications Manual

Real time clock module
Table of Contents

Advertisement

RA8804 CE

8.2.3. Alarm registers

Address
08
09
HOUR Alarm
WEEK Alarm
0A
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
0B
Timer Counter 0
0C
Timer Counter 1
1B
Setup of Timer
1C
Current value of Timer 0
1D
Current value of Timer 1
1E
Current value of Timer 2
1F
Timer Counter 2
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
Extension Register
0D
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
Write/Read
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.
Function
bit 7
MIN Alarm
AE
AE
AE
DAY Alarm
Function
bit 7
128
32768
TSTP
128
32768
8388608 4194304 2097152 1048576 524288
8388608 4194304 2097152 1048576 524288
Function
bit 7
TEST
(Default)
(0)
Data
0
Normal operation mode
1
Setting prohibited (manufacturer's test bit)
bit 6
bit 5
bit 4
40
20
10
20
10
6
5
4
20
10
bit 6
bit 5
bit 4
64
32
16
16384
8192
4096
TRES
64
32
16
16384
8192
4096
bit 6
bit 5
bit 4
WADA
USEL
TE
(0)
(0)
(0)
Description
Default
Page - 10
bit 3
bit 2
bit 1
8
4
2
8
4
2
3
2
1
8
4
2
bit 3
bit 2
bit 1
8
4
2
2048
1024
512
8
4
2
2048
1024
512
262144
131072
262144
131072
bit 3
bit 2
bit 1
FSEL1
FSEL0
TSEL1
(0)
(0)
(1)
ETM60E-02
bit 0
1
1
0
1
bit 0
1
256
1
256
65536
65536
bit 0
TSEL0
(0)

Advertisement

Table of Contents
loading

Table of Contents