![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 369](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609369.webp)
BAT32G1x9 user manual | Chapter 10 Timer M
369 / 1149
Rev.1.02
10.4.3
Synchronous Operation
Synchronize the TM0 register with the TM1 register.
•
Sync presets
If you write the TMi register when the TMSYNC bit of the TMMR register is "1" (synchronous
operation), the data is written to both the TM0 register and the TM1 register.
•
Sync clear
When the TMSYNC bit of the TMMR register is "1" and the CCLR2~CCLR0 bit of the TMCR0
register is "011B." "(Synchronous clearing), the TM0 register and the TM1 register both become
"0000H".
Similarly, when the TMSYNC bit of the TMMR register is "1" and the CCLR2~CCLR0 bit of the
TMCR1 register is " 011B" (simultaneous clear), the TM1 register and TM0 registers become "0000H"
at the same time.
Figure 10-44
runs synchronously
The conditions in the above figure are as follows:
● The TMSYNC
bit
of the TMMR register is "1" (synchronous
operation).
●The CCLR2~CCLR0 bit of the TMCR0 register is "001B" (when entering the capture, the TM0 is set to
"0000H").
The CCLR2~CCLR0 bit of the TMCR1 register is "011B" (synchronized with TM0, TM1 is set to "0000H").
●TMIORA0RegistersIOA2~IOA0Bit is“100B”
●The CMD1 bit and CMD0 bit of the TMFCR register are "00B"
The PWM3 bit of the TMFCR register is "1"
(The rising edge of the TMIOA0 input is snapped at the input).
TMIOA0 inpu
t
TM0
The value of
the register
TM1
The value of
the register
n
n
becom
es n
Synchronized with TM0
becomes "0000H"
Changes to "0000H" when
entering snapping
写
n
becomes n