343
Chapter 10
16-bit Inverter Timer/Counter R
User’s Manual U16580EE3V1UD00
10.4 Basic
Operation
10.4.1 Basic counter operation
This section describes the basic operation of the 16-bit counter. For details, refer to the description of
the operation of each mode.
(1)
Count start operation
The 16-bit counter of timer R starts counting from initial value FFFFH in all the modes except the
high-accuracy T-PWM mode.
The counter counts up FFFFH, 0000H, 0001H, 0002H, 0003H, …
For the count operation in the high-accuracy T-PWM mode refer to section
10.10.9
10.10.9.
(2)
Clear operation
The 16-bit counter is cleared to 0000H upon a match between the 16-bit counter and the compare
register. Counting immediately following the start of count operation and counting from FFFFH to
0000H in the case of overflow are not detected as clear operations.
(3)
Overflow operation
16-bit counter overflow occurs when the value of the 16-bit counter changes from FFFFH to
0000H. When overflow occurs, bit TRnOVF of the TRnOPT0 register is set (to 1), and an interrupt
(INTTRnOV) is output. No overflow interrupt (INTTRnOV) is output under the following conditions.
•
Immediately after count operation start
•
When compare value is matched and cleared at FFFFH
Caution:
Be sure to check that the overflow flag (TRnOVF) is set to 1 following output of the
overflow interrupt (INTTRnOV).
(4)
Counter read operation during count operation
In the case of timer R, the value of the 16-bit counter can be read by the TRnCNT register during
count operation.
Содержание MuPD70F3187
Страница 6: ...6 Preface User s Manual U16580EE3V1UD00 ...
Страница 16: ...16 User s Manual U16580EE3V1UD00 ...
Страница 28: ...28 User s Manual U16580EE3V1UD00 ...
Страница 32: ...32 User s Manual U16580EE3V1UD00 ...
Страница 84: ...84 Chapter 2 Pin Functions User s Manual U16580EE3V1UD00 MEMO ...
Страница 144: ...144 Chapter 3 CPU Functions User s Manual U16580EE3V1UD00 MEMO ...
Страница 192: ...192 Chapter 5 Memory Access Control Function μPD70F3187 only User s Manual U16580EE3V1UD00 MEMO ...
Страница 312: ...312 Chapter 9 16 Bit Timer Event Counter P User s Manual U16580EE3V1UD00 MEMO ...
Страница 534: ...534 Chapter 11 16 bit Timer Event Counter T User s Manual U16580EE3V1UD00 ...
Страница 969: ...969 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 MEMO ...
Страница 970: ...970 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 ...
Страница 976: ...976 Chapter 22 Internal RAM Parity Check Function User s Manual U16580EE3V1UD00 MEMO ...
Страница 984: ...984 Chapter 23 On Chip Debug Function OCD User s Manual U16580EE3V1UD00 MEMO ...
Страница 1006: ...1006 Chapter 24 Flash Memory User s Manual U16580EE3V1UD00 MEMO ...
Страница 1036: ...1036 Chapter 27 Recommended Soldering Conditions User s Manual U16580EE3V1UD00 MEMO ...
Страница 1046: ...1046 Appendix A Index User s Manual U16580EE3V1UD00 MEMO ...
Страница 1052: ...1052 User s Manual U16580EE3V1UD00 ...
Страница 1053: ......