![](http://datasheet.mmic.net.cn/110000/M32186F8VFP_datasheet_3496152/M32186F8VFP_369.png)
10.3 TOP (Output-Related 16-Bit Timer)
MULTIJUNCTION TIMERS
10
10-73
32185/32186 Group Hardware Manual
Rev.1.10 REJ09B0235-0110 May 15, 07
10.3.7 TOP Correction Registers (TOP0CC–TOP10CC)
TOP0 Correction Register (TOP0CC)
<Address: H’0080 0246>
TOP1 Correction Register (TOP1CC)
<Address: H’0080 0256>
TOP2 Correction Register (TOP2CC)
<Address: H’0080 0266>
TOP3 Correction Register (TOP3CC)
<Address: H’0080 0276>
TOP4 Correction Register (TOP4CC)
<Address: H’0080 0286>
TOP5 Correction Register (TOP5CC)
<Address: H’0080 0296>
TOP6 Correction Register (TOP6CC)
<Address: H’0080 02A6>
TOP7 Correction Register (TOP7CC)
<Address: H’0080 02B6>
TOP8 Correction Register (TOP8CC)
<Address: H’0080 02C6>
TOP9 Correction Register (TOP9CC)
<Address: H’0080 02D6>
TOP10 Correction Register (TOP10CC)
<Address: H’0080 02E6>
(Acceptable range of values: +32,767 to –32,768)
<Upon exiting reset: Undefined>
b
Bit Name
Function
R
W
0–15
TOP0CC–TOP10CC
16-bit correction register value
R
W
Note: These registers must always be accessed in halfwords.
The TOP correction registers are used to correct the TOP counter value by adding or subtracting in the middle
of operation. To increase or reduce the counter value, write to this correction register a value by which the
counter value is to be increased or reduced from its initial set value. To add, write the value to be added to the
correction register directly as is. To subtract, write the 2’s complement of the value to be subtracted to the
correction register.
The counter is corrected synchronously with a clock pulse next to one at which the correction value was written
to the TOP correction register. If the counter is corrected this way, note that because one down count in that
clock period is canceled, the counter value actually is corrected by "correction register value + 1." For example,
if the initial counter value is 10 and the value 3 is written to the correction register when the counter has counted
down to 5, then the counter counts a total of 15 before it underflows.
b0
12
34
56
78
9
10
11
12
13
14
b15
TOP0CC–TOP10CC
???
??
???
??