15 THEORETICAL REGULATION (TR)
15-2
Seiko epson Corporation
S1C17F13 TeChniCal Manual
(Rev. 1.0)
Correction value
The correction value (-31/32,768 to +32/32,768 seconds) for theoretical regulation is specified using the
TRCTL.TRIM[5:0] bits.
3.1.1 Correction Value Setting Example
Table 15.
TRCTL.TRIM[5:0]
bits
Amount of correction/
one adjustment
(n/32,768 seconds)
Rate
*
[seconds/day]
TRCTL.TRIM[5:0]
bits
Amount of correction/
one adjustment
(n/32,768 seconds)
Rate
*
[seconds/day]
0x20
-31
+8.174
0x00
+1
-0.264
0x21
-30
+7.910
0x01
+2
-0.527
0x22
-29
+7.646
0x02
+3
-0.791
0x23
-28
+7.383
0x03
+4
-1.055
0x24
-27
+7.119
0x04
+5
-1.318
0x25
-26
+6.855
0x05
+6
-1.582
0x26
-25
+6.592
0x06
+7
-1.846
0x27
-24
+6.328
0x07
+8
-2.109
0x28
-23
+6.064
0x08
+9
-2.373
0x29
-22
+5.801
0x09
+10
-2.637
0x2a
-21
+5.537
0x0a
+11
-2.900
0x2b
-20
+5.273
0x0b
+12
-3.164
0x2c
-19
+5.010
0x0c
+13
-3.428
0x2d
-18
+4.746
0x0d
+14
-3.691
0x2e
-17
+4.482
0x0e
+15
-3.955
0x2f
-16
+4.219
0x0f
+16
-4.219
0x30
-15
+3.955
0x10
+17
-4.482
0x31
-14
+3.691
0x11
+18
-4.746
0x32
-13
+3.428
0x12
+19
-5.010
0x33
-12
+3.164
0x13
+20
-5.273
0x34
-11
+2.900
0x14
+21
-5.537
0x35
-10
+2.637
0x15
+22
-5.801
0x36
-9
+2.373
0x16
+23
-6.064
0x37
-8
+2.109
0x17
+24
-6.328
0x38
-7
+1.846
0x18
+25
-6.592
0x39
-6
+1.582
0x19
+26
-6.855
0x3a
-5
+1.318
0x1a
+27
-7.119
0x3b
-4
+1.055
0x1b
+28
-7.383
0x3c
-3
+0.791
0x1c
+29
-7.646
0x3d
-2
+0.527
0x1d
+30
-7.910
0x3e
-1
+0.264
0x1e
+31
-8.174
0x3f
0
0
0x1f
+32
-8.438
*
Rates when theoretical regulation is executed in 10-second cycles
(= -(n/32,768)
×
6 [times/minute]
×
60 [minutes]
×
24 [hours])
The correction value (0x00 to 0x3f) should be written to the Flash memory or read the switch settings via the
I/O ports and set it to the TRCTL.TRIM[5:0] bits.
Theoretical regulation operations
Writing 1 to the TRCTL.REGTRIG bit extends or reduces the cycle time of the 256 Hz clock output by the
OSC1A divider for the regulation value specified by the TRCTL.TRIM[5:0] bits. Theoretical regulation is per-
formed only once by writing 1 to the TRCTL.REGTRIG bit. To perform theoretical regulation periodically, use
a timer interrupt handler to write 1 to the TRCTL.REGTRIG bit.
The corrected 256 Hz clock (F256) will be supplied to the peripheral circuits that use the regulated clock.
Note: Use an interrupt from a timer that runs with the regulated clock (F256) to execute theoretical
regulation. An interrupt from the timer that runs all the time should be used to reduce current
consumption.