| 전자부품 데이터시트 검색엔진 |
|
HT45F2020 데이터시트(PDF) 57 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F2020 데이터시트(HTML) 57 Page - Holtek Semiconductor Inc |
|
57 / 85 page ![]() Rev. 1.00 56 April 11, 2017 Rev. 1.00 57 April 11, 2017 HT45F2020/HT45F2022 Sound Effect Generator Flash MCU HT45F2020/HT45F2022 Sound Effect Generator Flash MCU Capture Input Mode ToselectthismodebitsPTM1andPTM0inthePTMC1registershouldbesetto01respectively. Thismodeenablesexternalsignalstocaptureandstorethepresentvalueoftheinternalcounter andcanthereforebeusedforapplicationssuchaspulsewidthmeasurements.Theexternalsignalis suppliedonthePTPIorPTCKpin,selectedbythePTCAPTSbitinthePTMC1register.Theinput pinactiveedgecanbeeitherarisingedge,afallingedgeorbothrisingandfallingedges;theactive edgetransitiontypeisselectedusingthePTIO1andPTIO0bitsinthePTMC1register.Thecounter isstartedwhenthePTONbitchangesfromlowtohighwhichisinitiatedusingtheapplication program. WhentherequirededgetransitionappearsonthePTPIorPTCKpinthepresentvalueinthecounter willbelatchedintotheCCRAregistersandaPTMinterruptgenerated.Irrespectiveofwhatevents occuronthePTPIorPTCKpinthecounterwillcontinuetofreerununtilthePTONbitchanges fromhightolow.WhenaCCRPcomparematchoccursthecounterwillresetbacktozero;inthis waytheCCRPvaluecanbeusedtocontrolthemaximumcountervalue.WhenaCCRPcompare matchoccursfromComparatorP,aPTMinterruptwillalsobegenerated.Countingthenumberof overflowinterruptsignalsfromtheCCRPcanbeausefulmethodinmeasuringlongpulsewidths. ThePTIO1andPTIO0bitscanselecttheactivetriggeredgeonthePTPIorPTCKpintobearising edge,fallingedgeorbothedgetypes.IfthePTIO1andPTIO0bitsarebothsethigh,thennocapture operationwilltakeplaceirrespectiveofwhathappensonthePTPIorPTCKpin,howeveritmustbe notedthatthecounterwillcontinuetorun. AsthePTPIorPTCKpinispinsharedwithotherfunctions,caremustbetakenifthePTMisinthe InputCaptureMode.Thisisbecauseifthepinissetupasanoutput,thenanytransitionsonthispin maycauseaninputcaptureoperationtobeexecuted.ThePTCCLR,PTOCandPTPOLbitsarenot usedinthisMode. |
|
링크 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 |