![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 179](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609179.webp)
BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
179 / 1149
Rev.1.02
6.6 Control of the channel output (TOmn pin).
6.6.1
Structure of the TOmn pin output circuit
Figure 6-31 Output circuit structure
co
n
tr
o
l
ci
rcu
it
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 output circuit of the TOmn pin is described below.
①
When the TOMmn bit is "0" (master channel output mode), ignore the setpoint of the timer output level
register m (TOLm) and only intTMmp (Slave Channel Timer Interrupt) Transmits the given timer output
register m(TOm).
②
When the TOMmn bit is "1" (slave channel output mode), INTMmn (master channel timer interrupt) and
INTMmp (slave channel timer interrupt) are passed to the TOm register.
At this point, the TOLm register is active and controls the following signal:
TOLmn=0When: Normal phase running (INTTMmn
→Positioning, INTTMmp→Reset) TOLmn=1When:
Inverted run (INTTMmn
→repositionINTTMmp→Position)
When both INTMmn and INTMmp (0% of the output of the PWM output) are generated at the same time,
the intTMmp (reset signal) is preferentially shielded INTTMmn (assertion signal).
③
In a state that enable the timer output (TOEmn=1), in which the intTMmn (master channel timer interrupt)
and INTMmp (slave channel timer interrupt) are passed to the TOm registers. 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 to the disable timer
output (TOEmn=0).
④
In the state where the timer output is disabled (TOEmn=0), the write operation (TOmn write signal) of the
TOmn bit of the target channel is valid. When the timer output is in the disabled state (TOEmn=0), intTMmn
(master channel timer interrupt) and INTMmp (slave channel timer interrupt) are not passed to the TOm
register.
⑤
The TOm register can be read at any time and the output level of the TOmn pin can be confirmed.
Note m: Unit number (m=0,1).
n: channel number,
m=0: n=0~3, m=1: n=0~7
(main control channel:
n=0,
2, 4, 6).
p: Slave channel number
n=0: p=1, 2, 3
n=2: p=3