Rev. 2.50 140 June 22, 2017 Rev. 2.50 141 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
Single Pulse Mode
Toselectthismode,bitsTnM1andTnM0intheTMnC1registershouldbesetto10respectively
andalsotheTnIO1andTnIO0bitsshouldbesetto11respectively.TheSinglePulseOutputMode,
asthenamesuggests,willgenerateasingleshotpulseontheTMoutputpin.
ThetriggerforthepulseoutputleadingedgeisalowtohightransitionoftheTnONbit,whichcan
beimplementedusingtheapplicationprogram.HoweverintheSinglePulseMode,theTnONbit
canalsobemadetoautomaticallychangefromlowtohighusingtheexternalTCKnpin,whichwill
inturninitiatetheSinglePulseoutput.WhentheTnONbittransitionstoahighlevel,thecounter
willstartrunningandthepulseleadingedgewillbegenerated.TheTnONbitshouldremainhigh
whenthepulseisinitsactivestate.Thegeneratedpulsetrailingedgewillbegeneratedwhenthe
TnONbitisclearedtozero,whichcanbeimplementedusingtheapplicationprogramorwhena
comparematchoccursfromComparatorA.
HoweveracomparematchfromComparatorAwillalsoautomaticallycleartheTnONbitandthus
generatetheSinglePulseoutputtrailingedge.InthiswaytheCCRAvaluecanbeusedtocontrol
thepulsewidth.AcomparematchfromComparatorAwillalsogenerateaTMinterrupt.Thecounter
canonlyberesetbacktozerowhentheTnONbitchangesfromlowtohighwhenthecounter
restarts.IntheSinglePulseModeCCRPisnotused.TheTnCCLRandTnDPXbitsarenotusedin
thisMode.
Single Pulse Generation