![](http://datasheet.mmic.net.cn/30000/M32196F8UFP_datasheet_2359476/M32196F8UFP_501.png)
10.8 TOU (Output-Related 24-Bit Timer)
MULTIJUNCTION TIMERS
10
10-197
32192/32195/32196 Group Hardware Manual
Rev.1.10 REJ09B0123-0110 Apr.06.07
To disable PWM outputs using the pin level of ports, set up the PWM Output Disable Level Control Register
(POnLVGACR, POnLVGBCR) and PWMOFF Function Enable Register (PWMOFFnEN) as described below.
When using the P87(P00)/TO21–P82(P05)/TO26 port level to disable PWM outputs
1. Using the PO0LVGACR(PO0LVGBCR) register PO0LVSELGA(PO0LVSELGB) bit, select the "H" or
"L" level at which PWM output is to be disabled.
2. Set the PO0LVENGA(PO0LVENGB) bit to "1" (the selected output disable level effective).
3. Enable the PWMOFF0 function by writing "1" to either or both of the PWMOFF0GAEN and
PWMOFF0GBEN bits of the PWMOFF0EN.
When using the P110(P10)/TO29–P115(P15)/TO34 port level to disable PWM outputs
1. Using the PO1LVGACR(PO1LVGBCR) register PO1LVSELGA(PO1LVSELGB) bit, select the "H" or
"L" level at which PWM output is to be disabled.
2. Set the PO1LVENGA(PO1LVENGB) bit to "1" (the selected output disable level effective).
3. Enable the PWMOFF1 function by writing "1" to either or both of the PWMOFF1GAEN and
PWMOFF1GBEN bits of the PWMOFF1EN.
10.8.21 Shorting Prevention Function
Before setting the shorting-prevention function enable/disable bit, be sure to stop the TOUn_0 through TOUn_
5 counters. (Setting this bit while the timer is enabled for counting is prohibited.)
When the shorting-prevention function is enabled, make sure each timer is run in either of the following opera-
tion modes. (Using timers in any other modes is prohibited.)
TOUn_0 (2, 4)Single-shot PWM mode
TOUn_1 (3, 5)Single-shot output mode
When the shorting-prevention function is enabled, the TOUn enable source select bits of TOUn_1 (3, 5) have
no effect, so that these timers are invoked by an underflow of TOUn_0 (2, 4).
Use the TOUn_1 (3, 5) reload register to set the shorting-prevention time. At this time, note that the shorting-
prevention time actually is the set value of the reload register + 3. The set value of the reload register must
satisfy the condition given below.
Set value of the TOUn_1 (3, 5) reload register
≤≤≤≤≤ set value of the TOUn_0 (2, 4) reload 1 register – 4
Before the shorting-prevention function can be enabled, designated values must be set in the F/F data register
and the F/F data register for the shorting-prevention function.
To output a "H" level signal first
Set a "1" in the F/F data register and a "0" in the F/F data register for the shorting-prevention function.
To output a "L" level signal first
Set a "0" in the F/F data register and a "1" in the F/F data register for the shorting-prevention function.
If the same value is set in the F/F data register and the F/F data register for the shorting-prevention function, a
fixed-level signal is output.
When the shorting-prevention function is enabled, writing H’FFFF to the TOUn_0 (2, 4) reload register 0 or the
TOUn_0 (2, 4) reload register 1 is prohibited.