English
Language : 

HD6473032F Datasheet, PDF (260/572 Pages) Hitachi Semiconductor – Hitachi Microcomputer
Figure 8-51 shows an example in which GRA is set to function as an input capture register
buffered by BRA, and TCNT is cleared by input capture B. The falling edge is selected as the
input capture edge at TIOCB. Both edges are selected as input capture edges at TIOCA. Because
of the buffer setting, when the TCNT value is captured into GRA at input capture A, the previous
GRA value is simultaneously transferred to BRA. Figure 8-52 shows the transfer timing.
TCNT value
H'0180
H'0160
Counter cleared by
input capture B
H'0005
H'0000
TIOCB
TOICA
GRA
BRA
GRB
H'0005
Time
H'0160
H'0005
H'0160
H'0180
Input capture A
Figure 8-51 Register Buffering (Example 2: Buffering of Input Capture Register)
245