CHAPTER 7 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U16896EJ2V0UD
256
(4) Operation in clear & start mode entered by TI010 pin valid edge input
(CR010 register: capture register, CR011 register: capture register)
Figure 7-19. Block Diagram of Clear & Start Mode Entered by TI010 Pin Valid Edge Input
(CR010 Register: Capture Register, CR011 Register: Capture Register)
16-bit counter
(TM01)
Clear
Output
controller
Capture register
(CR010)
Capture
signal
Capture signal
TO01 pin
Interrupt signal
(INTTM011)
Interrupt signal
(INTTM010)
Capture register
(CR011)
Operable bits
TMC013, TMC012
Count clock
Edge
detection
TI010 pin
Edge
detection
TI011 pin
Selector
Figure 7-20. Timing Example of Clear & Start Mode Entered by TI010 Pin Valid Edge Input
(CR010 Register: Capture Register, CR011 Register: Capture Register) (1/3)
(a) TOC01 = 13H, PRM01 = 30H, CRC01 = 05H, TMC01 = 0AH
TM01 register
0000H
Operable bits
(TMC013, TMC012)
Capture & count clear input
(TI010 pin input)
Capture register
(CR010)
Capture interrupt
(INTTM010)
Capture register
(CR011)
Capture interrupt
(INTTM011)
TO01 pin output
10
R
S
T
O
L
M
N
P
Q
00
L
0000H
0000H
L
M
N
O
P
Q
R
S
T
This is an application example where the count value is captured to the CR011 register, the TM01 register is
cleared, and the TO01 pin output is inverted when the rising or falling edge of the TI010 pin is detected.
When the edge of the TI011 pin is detected, an interrupt signal (INTTM010) is generated. Mask the INTTM010
signal when it is not used.
Содержание ?PD703302
Страница 2: ...User s Manual U16896EJ2V0UD 2 MEMO ...