303
Chapter 9
16-Bit Timer/Event Counter P
User’s Manual U16580EE3V1UD00
(4)
TPnCCS1 = 0, TPnCCS0 = 1 settings
When TPnCE is set to 1, the 16-bit counter counts from 0000H to FFFFH and free-running
count-up operation continues until TPnCE = 0 is set. The TPnCCR1 register is used as a compare
register. An interrupt signal is output upon a match between the value of the 16-bit counter and the
setting value of the TPnCCR1 register as an interval function. When TPnOE1 = 1 is set, TOPn1
performs toggle output upon mach between the value of the 16-bit counter and the setting value of
the TPnCCR1 register.
Figure 9-32:
Basic Operation Timing in Free-Running Mode (TPnCCS1 = 0, TPnCCS0 = 1)
Remarks: 1.
D
00
, D
01
, D
02
, D
03
: Values captured to TPnCCR0 register (0000H to FFFFH)
D
10
, D
11
, D
12
: Setting value of TPnCCR1 register (0000H to FFFFH)
2.
TIPn0: Set to falling edge detection (TPnIS1, TPnIS0 = 10B)
3.
n = 0 to 7
(5)
Overflow flag
When the counter overflows from FFFFH to 0000H in the free-running mode, the overflow flag
(TPnOVF) is set to 1 and an overflow interrupt (INTTPnOV) is output.
Be sure to confirm that the overflow flag (TPnOVF) is set to “1” when the overflow interrupt
(INTTPnOV) has occurred.
The overflow flag is cleared by writing 0 from the CPU.
TPnCE = 1
0000H
D
10
D
11
D
12
0000H
D
00
D
01
D
02
D
03
D
10
D
10
D
11
D
12
D
11
D
01
D
03
D
00
D
11
D
12
FFFFH
16-bit counter
TIPn0
INTTPnCC1
TPnCCR1
TPnCCR0
INTTPnCC0
capture interrupt
CCR1 buffer
register
D
02
Содержание V850E/PH2
Страница 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: ......