| Electronic Components Datasheet Search |
|
HT66F302 Datasheet(PDF) 83 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F302 Datasheet(HTML) 83 Page - Holtek Semiconductor Inc |
|
83 / 129 page ![]() Rev. 1.11 82 April 11, 2017 Rev. 1.11 83 April 11, 2017 HT66F302/HT66F303 Cost-Effective Flash MCU with EEPROM HT66F302/HT66F303 Cost-Effective Flash MCU with EEPROM Periodic Type TM Operating Modes ThePeriodicTypeTMcanoperateinoneoffiveoperatingmodes,CompareMatchOutputMode, PWMOutputMode,SinglePulseOutputMode,CaptureInputModeorTimer/CounterMode.The operatingmodeisselectedusingthePTM1andPTM0bitsinthePTMC1register. Compare Match Output Mode Toselectthismode,bitsPTM1andPTM0inthePTMC1register,shouldbeallclearedto00 respectively.Inthismodeoncethecounterisenabledandrunningitcanbeclearedbythree methods.Theseareacounteroverflow,acomparematchfromComparatorAandacomparematch fromComparatorP.WhenthePTCCLRbitislow,therearetwowaysinwhichthecountercan becleared.OneiswhenacomparematchoccursfromComparatorP,theotheriswhentheCCRP bitsareallzerowhichallowsthecountertooverflow.HereboththePTMAFandPTMPFinterrupt requestflagsforComparatorAandComparatorPrespectively,willbothbegenerated. IfthePTCCLRbitinthePTMC1registerishighthenthecounterwillbeclearedwhenacompare matchoccursfromComparatorA.However,hereonlythePTMAFinterruptrequestflagwillbe generatedevenifthevalueoftheCCRPbitsislessthanthatoftheCCRAregisters.Thereforewhen PTCCLRishighnoPTMPFinterruptrequestflagwillbegenerated.IntheCompareMatchOutput Mode,theCCRAcannotbesetto“0”.IftheCCRAbitsareallzero,thecounterwilloverflowwhen itsreachesitsmaximum10-bit,3FFHex,value,howeverherethePTMAFinterruptrequestflag willnotbegenerated. Asthenameofthemodesuggests,afteracomparisonismade,theTMoutputpin,willchangestate. TheTMoutputpinconditionhoweveronlychangesstatewhenaPTMAFinterruptrequestflagis generatedafteracomparematchoccursfromComparatorA.ThePTMPFinterruptrequestflag, generatedfromacomparematchfromComparatorP,willhavenoeffectontheTMoutputpin.The wayinwhichtheTMoutputpinchangesstatearedeterminedbytheconditionofthePTIO1and PTIO0bitsinthePTMC1register.TheTMoutputpincanbeselectedusingthePTIO1andPTIO0 bitstogohigh,togolowortotogglefromitspresentconditionwhenacomparematchoccursfrom ComparatorA.TheinitialconditionoftheTMoutputpin,whichissetupafterthePTONbitchanges fromlowtohigh,issetupusingthePTOCbit.NotethatifthePTIO1,PTIO0bitsarezerothenno pinchangewilltakeplace. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |