PULSE OUTPUT PORT MODE
9.4 Pulse output port mode operation
9.4.2 Operation at internal trigger
➀ When the timer Ai (i = 0, 3) count start bit is set to “1,” the counter starts counting of a count source.
➀ The contents of the pulse output data bits of three-phase output data registers 0, 1 are output from the
corresponding pulse output pins at each underflow of timer Ai. While the pulse width modulation is
selected, the pulse width modulation is performed for “H” level output.
The timer reloads the contents of the reload register and continues counting.
➀ The timer Ai interrupt request bit is set to “1” when the counter underflows in ➀. The interrupt request
bit retains “1” until the interrupt request is accepted or it is cleared to “0” by software.
➀ Write the next output data into three-phase output data registers 0, 1 during a timer Ai interrupt routine
(or after the confirmation of a timer Ai interrupt request occurrence.)
Figures 9.4.1 to 9.4.3 show examples of pulse output port mode operations.
n : Reloaded value
FFFF16
➀1
Starts counting
Starts pulse outputting
n
000016
➀1
➀1
➀1
➀1
➀1
Contents of bits 3 to 0 of
three-phase output data register 0
0011
2
0110
2
1100
2
1001
2
➀2
RTP0
RTP0
RTP0
0
1
2
output
output
output
Undefined
➀2
➀2
Undefined
Undefined
Undefined
➀2
RTP0
3
output
➀3
➀3
➀3
➀3
Timer A0 interrupt
request bit
➀1 : Written by software
➀2 : When avoiding undefined output in these terms (in other words, when stabilizing
these output level), be sure to follow the procedure “Processing of avoiding undefined
output before starting pulse output” in Figure 9.3.2.
➀3 : Cleared to “0” by an interrupt request acceptance or cleared by software.
The above applies when the following conditions are satisfied:
•Pulse mode 0 selected
•RTP00 to RTP03 selected
•No pulse width modulation
•Positive polarity
Fig. 9.4.1 Example of pulse output port mode operation (1)
7906 Group User’s Manual Rev.2.0
9-20