EasyManua.ls Logo

Cmsemicon CMS32L051 - Page 156

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 5 Universal Timer Unit (Timer4)
www.mcu.com.cn 156 / 703
(3) TOmn pin change regarding slave channel output mode (TOMmn=1)
(a) When the setting of the timer output level register m (TOLm) is changed during timer operation
If you change the setting of the TOLm register while the timer is running, the setting is valid when the
TOmn pin change condition is generated. The output level of the TOmn pin cannot be changed by rewriting
the TOLm register.
When the TOMmn bit is 1, the operation when changing the value of the TOLm register in timer operation
(TEmn=1) is shown below.
Figure 5-35 Operation when the contents of the TOLm register are changed during timer operation
valid voltage level valid voltage level valid voltage level valid voltage level
TO0m
(output)
reset
reset
reset
reset
reset
reset
reset
reset
TOLm
Note 1. Set: The output signal of the TOmn pin changes from an invalid level to an valid level.
Reset: The output signal of the TOmn pin changes from a valid level to an invalid level.
2. m: unit number (m=0, 1) n: channel number (n=0~3).
(b) Set/reset timing
To achieve 0% and 100% output at PWM output, the TOmn pin/TOmn at the time of the master
channel timer interrupt (INTTMmn) is generated through the slave channel. The timing delay of the bits
is 1 count clock.
When the set condition and the reset condition arise at the same time, the reset condition takes
precedence.
The set/reset operation status when setting the master/slave channel according to the following
method is shown in Figure 5-35.
Master channel: TOEmn=1, TOMmn=0, TOLmn=0
Slave channel: TOEmp=1, TOMmp=1, TOLmp=0

Table of Contents

Related product manuals