10
10-82
MULTIJUNCTION TIMERS
10.3 TOP (Output-Related 16-Bit Timer)
32180 Group User’s Manual (Rev.1.0)
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.
(2) Correction function of TOP 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 2’s 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 initial counter value is 7 and the value 3 is written to the correction register when the
counter has counted down to 3, then the counter counts a total of 12 before it underflows.
Figure 10.3.9 Example of Counting in TOP Single-shot Output Mode When Count is Corrected
(7)
6
5
4
3
2
1
0
1
2
3
4
5
6
7
8
9
10
11
12
6
5
4
3
7
3
Correction
register
+3
Underflow
Count value = (7 + 1) + (3 + 1) = 12
Count clock
dependent delay
H'FFFF
Enable
Reload
register
Counter
Interrupt request
Count clock
(Note 1)
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.
Содержание M32R/ECU Series
Страница 17: ...12 This page is blank for reasons of layout...
Страница 18: ...CHAPTER 1 OVERVIEW 1 1 Outline of the 32180 Group 1 2 Block Diagram 1 3 Pin Functions 1 4 Pin Assignments...
Страница 712: ...CHAPTER 18 OSCILLATOR CIRCUIT 18 1 Oscillator Circuit 18 2 Clock Generator Circuit...
Страница 794: ...CHAPTER 22 TYPICAL CHARACTERISTICS...
Страница 795: ...22 22 2 32180 Group User s Manual Rev 1 0 TYPICAL CHARACTERISTICS To be written at a later time...
Страница 796: ...APPENDIX 1 MECHANICAL SPECIFICAITONS Appendix 1 1 Dimensional Outline Drawing...
Страница 798: ...APPENDIX 2 INSTRUCTION PROCESSING TIME Appendix 2 1 32180 Instruction Processing Time...
Страница 802: ...APPENDIX 3 PROCESSING OF UNUSED PINS Appendix 3 1 Example Processing of Unused Pins...