EasyManua.ls Logo

Holtek HT66F002 - Single Pulse Output Mode

Default Icon
144 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Rev. 1.71 92 April 11, 2017 Rev. 1.71 93 April 11, 2017
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
Single Pulse Output Mode
Toselectthismode,therequiredbitpairs,PTnM1andPTnM0shouldbesetto10respectivelyand
alsothecorrespondingPTnIO1andPTnIO0bitsshouldbesetto11respectively.TheSinglePulse
OutputMode,asthenamesuggests,willgenerateasingleshotpulseontheTMoutputpin.
ThetriggerforthepulseoutputleadingedgeisalowtohightransitionofthePTnONbit,which
canbeimplementedusingtheapplicationprogram.HoweverintheSinglePulseMode,thePTnON
bitcanalsobemadetoautomaticallychangefromlowtohighusingtheexternalPTCKnpin,
whichwillinturninitiatetheSinglePulseoutput.WhenthePTnONbittransitionstoahighlevel,
thecounterwillstartrunningandthepulseleadingedgewillbegenerated.ThePTnONbitshould
remainhighwhenthepulseisinitsactivestate.Thegeneratedpulsetrailingedgewillbegenerated
whenthePTnONbitisclearedtozero,whichcanbeimplementedusingtheapplicationprogramor
whenacomparematchoccursfromComparatorA.
HoweveracomparematchfromComparatorAwillalsoautomaticallyclearthePTnONbitandthus
generatetheSinglePulseoutputtrailingedge.InthiswaytheCCRAvaluecanbeusedtocontrol
thepulsewidth.AcomparematchfromComparatorAwillalsogenerateTMinterrupts.Thecounter
canonlyberesetbacktozerowhenthePTnONbitchangesfromlowtohighwhenthecounter
restarts.IntheSinglePulseModeCCRPisnotused.ThePTnCCLRbitisalsonotused.
PTnON bit
0 1
S/W Command
SETPTnON
or
PTCKn Pin
Transition
PTnON bit
1 0
Trailing Edge
S/W Command
CLRPTnON
or
CCRA Compare
Match
PTPn/PTPnB
Output Pin
Pulse Width = CCRA Value
Leading Edge
Single Pulse Generation (n=0 or 1)

Table of Contents

Related product manuals