Alarm Registers ( Reg 09 [H] To 0C [H] ); Timer Setting Register ( Reg 0E [H] ); Down Counter For Fixed-Cycle Timer ( Reg 0F [H] ) - Epson RX-8564LC Applications Manual

Real time clock module
Table of Contents

Advertisement

RX
8564 LC
13.1.6. Alarm registers ( Reg
Address [h]
09
Minute Alarm
0A
0B
0C
Weekday Alarm
The AIE bit and AF bit can both be set or used when using alarm interrupt function to set interrupt events for dates,
days, hours, minutes, etc.
When the current time matches the settings in the above alarm registers, the AF bit's value is "1" and the /INT
pin's status is low to indicate that an alarm interrupt event has occurred.
For details, see "9.3. Alarm Interrupt Function".
13.1.7. Timer setting register ( Reg
Address [h]
0E
Timer control
This register is used to control the fixed-cycle timer interrupt function.
To use the fixed-cycle timer interrupt function, the TI/TP bits (Reg
TF and TIE bits are all set or used.
1) TE bit ( Timer Enable )
This bit is used to control operation of the fixed-cycle timer interrupt function.
When "1" is written to this bit, the fixed-cycle timer interrupt function starts operating.
When "0" is written to this bit, the fixed-cycle timer interrupt function stops operating.
For details, see "9.2. Fixed-cycle Timer Interrupt Function ".
2) TD1,TD0 bits ( Timer countDown interval select 1, 0 )
These bits specify the fixed-cycle timer interrupt function's countdown period (source clock).
Four different periods can be selected via combinations of these two bit values.
For details, see "9.2. Fixed-cycle Timer Interrupt Function ".
13.1.8. Down counter for fixed-cycle timer ( Reg
Address [h]
0F
This register is used to set the default (preset) value for the counter. Any count value from 1 (01 h) to
255 (FFh) can be set
To use the fixed-cycle timer interrupt function, the TE, TI/TP, TF, TIE, TD1, and TD0 bits are set and used.
When this down counter's count value changes from 01h to 00h, when TF bit = "1", or when the /INT pin is at low
level ("L"), it indicates that a fixed-cycle timer interrupt event has occurred.
The current countdown status can be checked by reading this register.
However, since the read data is not held (the data may be changing), to obtain accurate data the countdown
status should be read twice and then compared.
For details, see "9.2. Fixed-cycle Timer Interrupt Function ".
09 [h] to 0C [h] )
Function
bit 7
AE
Hour Alarm
AE
Day Alarm
AE
AE
0E [h] )
Function
bit 7
TE
0F [h] )
Function
bit 7
Timer
128
bit 6
bit 5
bit 4
40
20
10
20
10
20
10
bit 6
bit 5
bit 4
01 [h]), timer register (Reg
bit 6
bit 5
bit 4
64
32
16
Page
16
bit 3
bit 2
bit 1
8
4
2
8
4
2
8
4
2
4
2
bit 3
bit 2
bit 1
TD1
0F [h]), and the
bit 3
bit 2
bit 1
8
4
2
ETM12E-01
bit 0
1
1
1
1
bit 0
TD0
bit 0
1

Advertisement

Table of Contents
loading

Table of Contents