TIMER A
7.6 Pulse width modulation (PWM) mode
Continued from preceding
Figure 7.6.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.
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
Port P6 direction register
Count start register 0
(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
b7
b0
Port P2 direction register
Timer A4 count start bit
(Address 816
)
Pin TA4IN
Pin TA9IN
b7
b0
Count start register 1
(Address 4116
)
Clear the corresponding bit to “0.”
Timer A9 count start bit
Setting 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
Trigger input
to TAjIN pin
Trigger generated
Count starts.
Fig. 7.6.3 Initial setting example for registers related to PWM mode (2)
7906 Group User’s Manual Rev.2.0
7-41