
Rev. 1.20
126
��to�e� 0�� 201�
Rev. 1.20
127
��to�e� 0�� 201�
HT69F30A/HT69F40A/HT69F50A
TinyPower
TM
I/O Flash 8-Bit MCU with LCD & EEPROM
HT69F30A/HT69F40A/HT69F50A
TinyPower
TM
I/O Flash 8-Bit MCU with LCD & EEPROM
10-bit STM, PWM Mode, Edge-aligned Mode, TnDPX=0
CCRP
001b
010b
011b
100b
101b
110b
111b
000b
Pe�iod
12�
2�6
3�4
�12
640
76�
�96
1024
Duty
CCRA
If f
SYS
=16MHz, TM clock source select f
SYS
/4, CCRP=100b and CCRA=128,
The STM PWM output frequency=(f
SYS
/4)/512=f
SYS
/2048=7.8125kHz, duty=128/512=25%
If the Duty value defined by the CCRA register is equal to or greater than the Period value, then the
PWM output duty is 100%.
10-bit STM, PWM Mode, Edge-aligned Mode, TnDPX=1
CCRP
001b
010b
011b
100b
101b
110b
111b
000b
Pe�iod
CCRA
Duty
12�
2�6
3�4
�12
640
76�
�96
1024
The PWM output period is determined by the CCRA register value together with the TM clock
while the PWM duty cycle is defined by the CCRP register value.
16-bit STM, PWM Mode, Edge-aligned Mode, TnDPX=0
CCRP
1~255
000b
Pe�iod
CCRP×2�6
6��36
Duty
CCRA
If f
SYS
=16MHz, TM clock source select f
SYS
/4, CCRP=2 and CCRA=128,
The STM PWM output frequency=(f
SYS
/4)/(2×256)=f
SYS
/2048=7.8125kHz, duty=128/(2×256)=25%.
If the Duty value defined by the CCRA register is equal to or greater than the Period value, then the
PWM output duty is 100%.
16-bit STM, PWM Mode, Edge-aligned Mode, TnDPX=1
CCRP
1~255
000b
Pe�iod
CCRA
Duty
CCRP×2�6
6��36
The PWM output period is determined by the CCRA register value together with the TM clock
while the PWM duty cycle is defined by the (CCRP×256) except when the CCRP value is equal to
000b.