TIMER A
7.5 One-shot pulse mode
Continued from preceding
Figure 7.5.2
When internal trigger
is selected
When external trigger
is selected
Setting port P6 and port P2 direction registers
Setting count start bit to “1”
b7
b0
b7
b0
Count start register 0
Port P6 direction register
(Address 4016
)
(Address 1016
)
Pin TA0IN
Pin TA1IN
Pin TA2IN
Timer A0 count start bit
Timer A1 count start bit
Timer A2 count start bit
Timer A4 count start bit
b7
b0
Port P2 direction register
(Address 816
)
b7
b0
Count start register 1
Pin TA4IN
Pin TA9IN
(Address 4116
)
Timer A9 count start bit
Clear the corresponding bit to “0.”
Setting one-shot start bit to “1”
Setting count start bit to “1”
b7
b0
b7
b0
Count start register 0
(Address 4016
One-shot start register 0
0
0
)
(Address 4216
)
Timer A0 count start bit
Timer A1 count start bit
Timer A0 one-shot start bit
Timer A1 one-shot start bit
Timer A2 one-shot start bit
Timer A2 count start bit
Timer A4 count start bit
Timer A4 one-shot start bit
b7
b0
Count start register 1
(Address 4116
)
b7
b0
One-shot start register 1
0
0
0
0 0
Timer A9 count start bit
(Address 4316
)
Timer A9 one-shot start bit
Trigger input to
TAjIN pin
Trigger generated
Count starts.
Fig. 7.5.3 Initial setting example for registers related to one-shot pulse mode (2)
7906 Group User’s Manual Rev.2.0
7-32