Datasheet

V850ES/JG3 CHAPTRER 8 16-BIT TIMER/EVENT COUNTER Q (TMQ)
R01UH0015EJ0300 Rev.3.00 Page 360 of 870
Sep 30, 2010
(b) Pulse width measurement with capture register
When pulse width measurement is performed with the TQ0CCRm register used as a capture register, software
processing is necessary for reading the capture register each time the INTTQ0CCm signal has been detected
and for calculating an interval.
D20
D00
D30
D10
D11
D21
D31
D12D01
D02
D32
D13
D03
D22
D33
D23
0000
Pulse interval
(10000H +
D
01
D
00
)
Pulse interval
(10000H +
D
02
D
01
)
Pulse interval
(10000H +
D
03
D
02
)
D00 D01 D02 D03
Pulse interval
(D
00
+ 1)
0000
Pulse interval
(10000H +
D
11
D
10
)
Pulse interval
(10000H +
D
12
D
11
)
Pulse interval
(D
13
D
12
)
D10 D11 D12 D13
Pulse interval
(D
10
+ 1)
0000
Pulse interval
(10000H +
D
21D20)
Pulse interval
(20000H +
D
22D21)
Pulse interval
(D
23D22)
D
20 D21 D23D22
Pulse interval
(D
20 + 1)
0000
Pulse interval
(10000H +
D
31D30)
Pulse interval
(10000H +
D
32D31)
Pulse interval
(10000H +
D
33D32)
D
30 D31 D32 D33
Pulse interval
(D
30 + 1)
Cleared to 0 by
CLR instruction
Cleared to 0 by
CLR instruction
Cleared to 0 by
CLR instruction
FFFFH
16-bit counter
0000H
TQ0CE bit
TIQ00 pin input
TQ0CCR0 register
INTTQ0CC0 signal
TIQ02 pin input
TQ0CCR2 register
INTTQ0CC2 signal
TIQ03 pin input
TQ0CCR3 register
INTTQ0CC3 signal
INTTQ0OV signal
TQ0OVF bit
TIQ01 pin input
TQ0CCR1 register
INTTQ0CC1 signal