| Electronic Components Datasheet Search |
|
HT45F39 Datasheet(PDF) 52 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F39 Datasheet(HTML) 52 Page - Holtek Semiconductor Inc |
|
52 / 102 page ![]() Rev. 1.10 52 July 01, 2016 Rev. 1.10 53 July 01, 2016 HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU Bit2 TnPOL:TPnOutputpolarityControl 0:Non-invert 1:Invert ThisbitcontrolsthepolarityoftheTnoutputpin.WhenthebitissethightheTM outputpinwillbeinvertedandnotinvertedwhenthebitiszero.Ithasnoeffectifthe TMisintheTimer/CounterMode. Bit1 TnDPX:TMnPWMperiod/dutyControl 0:CCRP-period;CCRA-duty 1:CCRP-duty;CCRA-period Thisbit,determineswhichoftheCCRAandCCRPregistersareusedforperiodand dutycontrolofthePWMwaveform. Bit0 TnCCLR:SelectTMnCounterclearcondition 0:TMnComparatorPmatch 1:TMnComparatorAmatch Compact Type TM Operating Modes TheCompactTypeTMcanoperateinoneofthreeoperatingmodes,CompareMatchOutputMode, PWMModeorTimer/CounterMode.TheoperatingmodeisselectedusingtheTnM1andTnM0 bitsintheTMnC1register. Compare Match Output Mode Toselectthismode,bitsTnM1andTnM0intheTMnC1register,shouldbesetto_00_respectively. Inthismodeoncethecounterisenabledandrunningitcanbeclearedbythreemethods.Theseare acounteroverflow,acomparematchfromComparatorAandacomparematchfromComparatorP. WhentheTnCCLRbitislow,therearetwowaysinwhichthecountercanbecleared.Oneiswhen acomparematchoccursfromComparatorP,theotheriswhentheCCRPbitsareallzerowhich allowsthecountertooverflow.HerebothTnAFandTnPFinterruptrequestflagsfortheComparator AandComparatorPrespectively,willbothbegenerated.IftheTnCCLRbitintheTMnC1 registerishighthenthecounterwillbeclearedwhenacomparematchoccursfromComparatorA. However,hereonlytheTnAFinterruptrequestflagwillbegeneratedevenifthevalueoftheCCRP bitsislessthanthatoftheCCRAregisters.ThereforewhenTnCCLRishighnoTnPFinterrupt requestflagwillbegenerated.IftheCCRAbitsareallzero,thecounterwilloverflowwhenits reachesitsmaximum10-bit,3FFHex,value,howeverheretheTnAFinterruptrequestflagwillnot begenerated.Asthenameofthemodesuggests,afteracomparisonismade,theTMoutputpin willchangestate.TheTMoutputpinconditionhoweveronlychangesstatewhenaTnAFinterrupt requestflagisgeneratedafteracomparematchoccursfromComparatorA.TheTnPFinterrupt requestflag,generatedfromacomparematchoccursfromComparatorP,willhavenoeffectonthe TMoutputpin.ThewayinwhichtheTMoutputpinchangesstatearedeterminedbythecondition oftheTnIO1andTnIO0bitsintheTMnC1register.TheTMoutputpincanbeselectedusingthe TnIO1andTnIO0bitstogohigh,togolowortotogglefromitspresentconditionwhenacompare matchoccursfromComparatorA.TheinitialconditionoftheTMoutputpin,whichissetupafter theTnONbitchangesfromlowtohigh,issetupusingtheTnOCbit.NotethatiftheTnIO1and TnIO0bitsarezerothennopinchangewilltakeplace. |
|
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 |