| 전자부품 데이터시트 검색엔진 |
|
HT45F39 데이터시트(PDF) 52 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F39 데이터시트(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. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |