EasyManuals Logo

Renesas M32R/ECU Series User Manual

Renesas M32R/ECU Series
839 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #331 background imageLoading...
Page #331 background image
10
10-88
MULTIJUNCTION TIMERS
10.3 TOP (Output-Related 16-Bit Timer)
32180 Group Users Manual (Rev.1.0)
(2) Correction function of TOP delayed single-shot output mode
To change the counter value while in progress, write to the TOP 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 2s complement of the value to be subtracted to the
correction register.
The counter is corrected synchronously with a count 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 reload register value is 7 and the value 3 is written to the correction register when the
counter has counted down to 3 after being reloaded, then the counter counts a total of 12 after being reloaded
before it underflows.
Enable = "H"
(7)
6
5
4
3
2
1
0
1234567891011
12
6
5
4
3
7
+3
(Note 1)
0
H'FFFF
3
Underflow
Correction
register
Reload
register
Counter
Interrupt request
Count clock
Note 1: What actually is seen in the cycle immediately after reload is the previous counter value, and not 7.
Note:This diagram does not show detailed timing information.
Count value after being reloaded = (7 + 1) + (3 + 1) = 12
Figure 10.3.14 Example of Counting in TOP Delayed Single-shot Output Mode When Count is Corrected
When writing to the correction register, be careful not to cause the counter to overflow. Even if the counter
overflows due to correction of counts, no interrupt requests are generated for reasons of an overflow.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas M32R/ECU Series and is the answer not in the manual?

Renesas M32R/ECU Series Specifications

General IconGeneral
BrandRenesas
ModelM32R/ECU Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals