TIMER A
7.4 Event counter mode
Continued from preceding
Figure 7.4.2
Setting interrupt priority level
b7
b0
Timer Aj interrupt control register (j = 0 to 2, 4, 9)
(Addresses 7516 to 7716, 7916, F916
)
Interrupt priority level select bits
When using interrupts, set these bits to one of levels
1 to 7.
When disabling interrupts, set these bits to level 0.
Setting port P6 and port P2 direction registers
b7
b0
Port P6 direction register (Address 1016
)
Pin TA0OUT
Pin TA0IN
Pin TA1OUT
Pin TA1IN
Pin TA2OUT
Pin TA2IN
b7
b0
Port P2 direction register (Address 816
)
Pin TA4OUT
Pin TA4IN
Pin TA9OUT
Pin TA9IN
Clear the bit corresponding to the TAjIN pin to “0.”
When selecting the TAjOUT pin’s input signal as up-down switching factor,
clear the bit corresponding to the TAjOUT pin to “0.”
When selecting the two–phase pulse signal processing function, clear the
bits corresponding to the TA2OUT, TA4OUT, and TA9OUT pins to “0.”
Setting the count start bit to “1”
b7
b0
Count start register 0
(Address 4016
)
Timer A0 count start bit
Timer A1 count start bit
Timer A2 count start bit
Timer A4 count start bit
b7
b0
Count start register 1
(Address 4116
)
Timer A9 count start bit
Count starts.
Fig. 7.4.3 Initial setting example for registers relevant to event counter mode (2)
7906 Group User’s Manual Rev.2.0
7-22