![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 389](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609389.webp)
BAT32G1x9 user manual | Chapter 10 Timer M
389 / 1149
Rev.1.02
Table 10-15 Specifications for Reset Synchronous PWM Mode
project
specification
Count the sources
f
CLK
, f
CLK
/2, f
CLK
/4, f
CLK
/8, f
CLK
/32
An external input signal from the TMCLK pin that can
programmatically select valid edges
count
TM0 is an incremental count (TM1 is not used).
PWM waveform
PWM period: 1/fk
(m+1) Normal phase effective level width: 1/fk
(m
–n) Inverting
effective level width: 1/fk
(n+1).
fk: The frequency of the counting source m:the setting value of the TMGRA0 register
n: TMGRB0 register set value (PWM output 1) TMGRA1 register set value (PWM output
2) The setting value of the TMGRB1 register (PWM output 3).
m+1
Positive phase
m
–n
Inverted
n+1
(when the effective level is "L"
).
Count start criteria
Write "1" (start counting) to the TSTART0 bit of the TMSTR register.
Count stop conditions
• Write "0" (stop count) to the TSTART0 bit when the CSEL0 bit of the TMSTR register is
"1".
The PWM output pin outputs the initial output level of the OLS0 bit and OLS1 bit selection of
the TMFCR register.
• Stop counting when the CSEL0 bit of the TMSTR register is "0" and a comparison match of
TMGRA0 occurs.
The PWM output pin outputs the initial output level of the OLS0 bit and OLS1 bit selection of
the TMFCR register.
Timing of the generation of
interrupt requests
• Comparison matching (TM0 registers have the same content as TMGRj0, TMGRA1,
TMGRB1 registers).
• Overflow of TM0
TMIOA0 pin function
I/O port or TMCLK (external clock) input
TMIOB0 pin function
The normal phase output of PWM output 1
TMIOD0 pin function
Inverting output of PWM output 1
TMIOA1 pin function
The normal phase output of PWM output 2
TMIOC1 pin function
Inverting output of PWM output 2
TMIOB1 pin function
The normal phase output of PWM output 3
TMIOD1 pin function
Inverting output of PWM output 3
TMIOC0 pin function
Inverting output at each PWM
cycle.
INTP0 pin function
The pulse output is the input of the forced cutoff signal (input dedicated port or INTP0
interrupt input).
Read timer
If you read the TM0
register, you can read the count value.
Write timer
Can write TM0
registers.
Select Features
• Selection of positive and negative phase effective levels and initial output levels
•Buffer run (see
•Input of the pulse output forced cutoff signal (see "Forced cutoff of 10.4.4 pulse output").
Remark
j=A, B, C, D