EasyManua.ls Logo

Cmsemicon CMS32L051 - 5.6 Control of the channel output (TOmn pin)

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 152 / 703
5.6 Control of the channel output (TOmn pin)
5.6.1 Structure of the TOmn pin output circuit
Figure 5-31 Structure of output circuitry
control circuit
Interrupt signal of master
channel
INTTMmn
interrupt singal of slave
channel
INTTMmp
TOmn register
set
reset/swap
Tomn pin
TOmn write singal
TOEmn
TOLmn
TOMmn
internal bus
The following describes the output circuit of the Tomn pin.
(1) When the TOMmn bit is 0 (main channel output mode), ignore the timer output level register m
(TOLm) setting, and only INTTMmp (Slave Channel Timer Interrupt) passes the given timer output
register m (TOm).
(2) When the TOMmn bit is 1 (slave channel output mode), INTTMmn (master channel timer
interrupt) and INTTMmp (slave channel timer interrupt) are passed to the TOm register.
At this point, the TOLm register is valid and the following
signals are controlled:
TOLmn=0: Normal-phase operation (INTTMmn emset, INTTMmp reset)
TOLmn=1: Inverting operation (INTTMmn reset, INTTMmp set).
When both INTTMmn and INTTMmp (0% of the PWM output) are generated simultaneously, the
INTTMmn (reset signal) is preferred and the INTTMmn is masked (Set signal).
(3) In the state of allowing timer output (TOEmn=1), the INTTMmn (master channel timer interrupt)
and INTTMmp (slave channel timer interrupt) are passed to the TOm register. The write operation
of the TOm register (TOmn write signal) is invalid.
When the TOEmn bit is 1, the output of the TOmn pin is not changed except for the interrupt
signal.
To initialize the output level of the TOmn pin, the TOm register needs to be written after setting the
disable timer output (TOEmn=0).
(4) In the state of disabling the timer output (TOEmn=0), the write operation of the TOmn bit of the
object channel (TOmn write signal) is valid. When the timer output is in a disabled state
(TOEmn=0), INTTMmn (master channel timer interrupt) and INTTMmp (slave channel timer
interrupt) are not passed to the TOm register.
(5) The TOm register can be read at any time and the output level of the TOmn pin can be confirmed.
Remarks m: Unit number (m=0,1) n: channel number n=0~3 (master channel: n=0, 2 )
p: The slave channel number
n=0p=1, 2, 3
n=2p=3

Table of Contents

Related product manuals