Rev. 1.50 112 August 28, 2017 Rev. 1.50 113 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
Single Pulse Output Mode
Toselectthismode,bitsTnM1andTnM0intheTMnC1registershouldbesetto10respectively
andalsotheTnIO1andTnIO0bitsshouldbesetto11respectively.TheSinglePulseOutputMode,
asthenamesuggests,willgenerateasingleshotpulseontheTMnoutputpin.
ThetriggerforthepulseoutputleadingedgeisalowtohightransitionoftheTnONbit,whichcan
beimplementedusingtheapplicationprogram.HoweverintheSinglePulseMode,theTnONbit
canalsobemadetoautomaticallychangefromlowtohighusingtheexternalTCKnpin,whichwill
inturninitiatetheSinglePulseoutput.WhentheTnONbittransitionstoahighlevel,thecounter
willstartrunningandthepulseleadingedgewillbegenerated.TheTnONbitshouldremainhigh
whenthepulseisinitsactivestate.Thegeneratedpulsetrailingedgewillbegeneratedwhenthe
TnONbitisclearedtozero,whichcanbeimplementedusingtheapplicationprogramorwhena
comparematchoccursfromComparatorA.
HoweveracomparematchfromComparatorAwillalsoautomaticallycleartheTnONbitandthus
generatetheSinglePulseoutputtrailingedge.InthiswaytheCCRAvaluecanbeusedtocontrolthe
pulsewidth.AcomparematchfromComparatorAwillalsogenerateaTMninterrupt.Thecounter
canonlyberesetbacktozerowhentheTnONbitchangesfromlowtohighwhenthecounter
restarts.IntheSinglePulseModeCCRPisnotused.TheTnCCLRisnotusedinthisMode.
TnON bit
0 à 1
S/W Command
SET“TnON”
or
TCKn Pin
Transition
TnON bit
1 à 0
CCRA
Trailing Edge
S/W Command
CLR“TnON”
or
CCRA Compare
Match
TPn Output Pin
Pulse Width = CCRA Value
CCRA
Leading Edge
Single Pulse Generation