Top Correction Registers (Top0Cc-Top10Cc) - Renesas M32R/ECU Series User Manual

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

10
10.3.7 TOP Correction Registers (TOP0CC–TOP10CC)
TOP0 Correction Register (TOP0CC)
TOP1 Correction Register (TOP1CC)
TOP2 Correction Register (TOP2CC)
TOP3 Correction Register (TOP3CC)
TOP4 Correction Register (TOP4CC)
TOP5 Correction Register (TOP5CC)
TOP6 Correction Register (TOP6CC)
TOP7 Correction Register (TOP7CC)
TOP8 Correction Register (TOP8CC)
TOP9 Correction Register (TOP9CC)
TOP10 Correction Register (TOP10CC)
b0
1
2
?
?
?
b
Bit Name
0–15
TOP0CC–TOP10CC
Note: • This register 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.
3
4
5
6
TOP0CC–TOP10CC
?
?
?
?
(Acceptable range of values: +32,767 to –32,768)
MULTIJUNCTION TIMERS
10.3 TOP (Output-Related 16-Bit Timer)
7
8
9
10
?
?
?
?
Function
16-bit correction register value
10-77
<Address: H'0080 0246>
<Address: H'0080 0256>
<Address: H'0080 0266>
<Address: H'0080 0276>
<Address: H'0080 0286>
<Address: H'0080 0296>
<Address: H'0080 02A6>
<Address: H'0080 02B6>
<Address: H'0080 02C6>
<Address: H'0080 02D6>
<Address: H'0080 02E6>
11
12
13
14
?
?
?
?
<After reset: Undefined>
32180 Group User's Manual (Rev.1.0)
b15
?
R
W
R
W

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents