Control Register 2; Clock And Calendar Registers, And Vl Bit And Century Bit - Epson RTC-8564JE Applications Manual

Real time clock module
Table of Contents

Advertisement

RTC - 8564 JE/NB

8.2.2. Control register 2

Address
Function
01
Control 2
• TI/TP ( Interrupt Signal Output Mode Select. Interrupt / Periodic )
If this bit is set to 0, when the timer counts down in the single operation mode and becomes zero, it sets the TF
flag and then stops. If this bit is set to 1, when the timer in the repeat mode becomes zero, it sets the TF flag,
and it furthermore reload the initial value and repeat to count down. As long as the TF flag is not cleared, the
set is maintained.
• AF ( Alarm Flag )
This is a flag bit which goes into the set state when an alarm occurs.
• TF ( Timer Flag )
This is a flag bit which goes into the set state when the timer counts down within the specified cycle and
becomes zero.
• AIE ( Alarm Interrupt Enable )
This bit determines whether to output the alarm flag state to the /INT pin. When it is set to 1, AF=1 then /INT
becomes LOW. When it is set to 0, the information is not output to the /INT pin.
• TIE ( Timer Interrupt Enable )
This bit determines whether to output the Timer flag state to the /INT pin. When it is set to 1, TF=1 then /INT
becomes LOW. When it is set to 0, the information is not output to the /INT pin.
(Note)
The /INT pin outputs the logical sum of the respective signal of alarm interrupt and timer interrupt. When an
interrupt occurs, the AF/TF flag is read out. Therefore, be sure to check to see which interrupt event has
occurred.When alarm and timer are both prohibited . The /INT pin will not become LOW active. If all hardware
interrupts cannot be used due to system constraints, after the above setup, be sure to use the software to
monitor the interrupt flags for AF and TF.

8.2.3. Clock and calendar registers, and VL bit and century bit

Address
02
03
04
05
06
07
Months / Century
08
If data and time are set to impossible values, the clock cannot operate correctly. Therefore pay attention when
handling them.
• VL ( Voltage Low bit )
This is the bit for detecting low voltage. When the power source's voltage drops below VLOW[V]*, this flag is
set to 1.
After the initial power-on, it is set to 1. If this flag is set to 1 after recovery from the backup state, this means
during the backup the power was low, and all data need to be initialized.
But this bit is intended to detect the situation when V
operation.
In other words, chattering doesn't detect it.
However, because this bit is write cleared regardless of the data, before performing a write to this register, be
sure to read out its value.
∗See the description on DC electrical characteristics.
V
DD
V
LOW
GND
(1) VL="1" as result of initial supply of power
(2) When the power supply is low but voltage not dropping to V
with no change
(3) When the power supply is low and voltage dropping below V
∗ The value of the VL bit in (2) and (3) need to be zero cleared in (1).
bit 7
bit 6
×
0
Function
bit 7
Seconds
VL
×
Minutes
×
Hours
×
Days
×
Weekdays
C
Years
80
(1) VL="1"
bit 5
bit 4
bit 3
0
TI / TP
AF
bit 6
bit 5
bit 4
40
20
10
40
20
10
×
20
10
×
20
10
×
×
×
×
×
10
40
20
10
is decreasing slowly for example under battery
DD
(2) VL="0"
(3) VL="1"
GND=0 V
, VL remains at "0"
LOW
, VL becomes "1".
L OW
Page - 6
bit 2
bit 1
bit 0
TF
AIE
TIE
bit 3
bit 2
bit 1
8
4
2
8
4
2
8
4
2
8
4
2
×
4
2
8
4
2
8
4
2
MQ - 322 - 04
bit 0
1
1
1
1
1
1
1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rtc-8564nbQ41856470000100Q41856490000200

Table of Contents