TIMER A
7.4 Event counter mode
Continued from preceding
Figure 7.4.2
Setting interrupt priority level
b7
b0
Timer Ai interrupt control register (j = 0 to 9)
(Addresses 7516 to 7916, F516 to 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, port P2, and port P4 direction registers
b7
b0
Port P6 direction register (Address 1016
)
Pin TA0 OUT
Pin TA0 IN
Pin TA1 OUT
Pin TA1 IN
Pin TA2 OUT
Pin TA2 IN
Pin TA3 OUT
Pin TA3 IN
b7
b0
Port P2 direction register (Address 816
)
Pin TA4 OUT
Pin TA4 IN
Pin TA9 OUT
Pin TA9 IN
b7
b0
Port P4 direction register (Address C16
)
Pin TA5 OUT
Pin TA5 IN
Pin TA6 OUT
Pin TA6 IN
Pin TA7 OUT
Pin TA7 IN
Pin TA8 OUT
Pin TA8 IN
Clear the bit corresponding to the TAi IN pin to “0.”
When selecting the TAi OUT pin’s input signal as up-down switching factor,
clear the bit corresponding to the TAi OUT pin to “0.”
When selecting the two–phase pulse signal processing function, clear the
bit corresponding to the TAjOUT (j = 2 to 4, 7 to 9) pin 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 A3 count start bit
Timer A4 count start bit
b7
b0
Count start register 1
(Address 4116
)
Timer A5 count start bit
Timer A6 count start bit
Timer A7 count start bit
Timer A8 count start bit
Timer A9 count start bit
Count starts.
Fig. 7.4.3 Initial setting example for registers relevant to event counter mode (2)
7905 Group User’s Manual Rev.1.0
7-22