15 THEORETICAL REGULATION (TR)
S1C17F13 TeChniCal Manual
Seiko epson Corporation
15-3
(Rev. 1.0)
Regulated Clock External Monitor
15.3.2
Either the 256 Hz (F256) or 1 Hz (F1) corrected clock can be output from the REGMON pin for monitoring. The
control procedure is shown below.
Monitoring 256 Hz clock (F256)
1. Activate at least one peripheral circuit that uses F256 (the operating clock must be configured to F256).
2. Set the TRCTL.REGFREQ bit to 0.
(Select 256 Hz as the output frequency)
3. Set the TRCTL.REGMONEN bit to 1.
(Start clock monitor output)
Monitoring 1 Hz clock (F1)
1. Activate the real-time clock.
2. Set the TRCTL.REGFREQ bit to 1.
(Select 1 Hz as the output frequency)
3. Set the TRCTL.REGMONEN bit to 1.
(Start clock monitor output)
The clock is output from the REGMON pin by setting the TRCTL.REGMONEN bit to 1. Setting the TRCTL.REG-
MONEN bit to 0 stops the clock output and the REGMON pin goes low (V
SS
) level.
Control Register
15.4
Theoretical Regulation Control Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
TRCTL
15–10 –
0x00
–
R
–
9
REGFREQ
0
H0
R/W
8
REGMONEN
0
H0
R/W
7
REGTRIG
0
H0
W
Always read as 0.
6
–
0
–
R
–
5–0 TRIM[5:0]
0x00
H0
R/W
Bits 15–10 Reserved
Bit 9
ReGFReQ
This bit selects the frequency of the regulated clock to be output from the REGMON pin for monitor-
ing.
1 (R/W): 1 Hz (F1)
0 (R/W): 256 Hz (F256)
Bit 8
ReGMOnen
This bit controls the regulated clock monitor output.
1 (R/W): Enable
0 (R/W): Disable
Note: Before the monitor output can be started, a peripheral circuit that uses the regulated clock
must be activated (see “Regulated Clock External Monitor”).
Bit 7
ReGTRiG
This bit executes theoretical regulation.
1 (W):
Trigger (Theoretical regulation is executed only once.)
0 (W):
Ineffective
0 (R):
Always 0 when being read
Note: A maximum 16.6 ms of delay occurs before theoretical regulation actually starts after writing
to the TRCTL.REGTRIG bit. Writing 1 to the TRCTL.REGTRIG bit in this period is ineffective,
so to write 1 to the TRCTL.REGTRIG bit successively, an interval at least 16.6 ms is neces-
sary between writings.