Rev. 2.50 162 June 22, 2017 Rev. 2.50 163 June 22, 2017
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
Counter Value
CCRA
TnON
TnPAU
TnBPOL
CCRA Int.
Flag TnAF
CCRB Int.
Flag TnBF
Time
Pause
Resume
Stop
Counter
Restart
TnCCLR = 1; TnBM [1:0] = 10;
TnPWM [1:0] = 11
Output Pin
Reset to Initial value
Output controlled
by other pin-shared
function
CCRB
TPnB Pin
(TnBOC=1)
TPnB Pin
(TnBOC=0)
Duty Cycle set by CCRB
PWM Period set by CCRA
Output Inverts
when TnBPOL is high
CCRP Int.
Flag TnPF
ETM PWM Mode – Centre Aligned
Note:1.HereTnCCLR=1thereforeCCRAclearsthecounteranddeterminesthePWMperiod
2.TnPWM[1:0]=11thereforethePWMiscentrealigned
3.TheinternalPWMfunctioncontinuesrunningevenwhenTnBIO[1:0]=00or01
4.CCRAcontrolstheTPnBPWMperiodandCCRBcontrolstheTPnBPWMduty
5.CCRPwillgenerateaninterruptrequestwhenthecounterdecrementstoitszerovalue