| 전자부품 데이터시트 검색엔진 |
|
HT46R003B 데이터시트(PDF) 39 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R003B 데이터시트(HTML) 39 Page - Holtek Semiconductor Inc |
|
39 / 76 page ![]() Rev. 1.00 38 ��ne 1�� �01� Rev. 1.00 3� ��ne 1�� �01� HT46R003B Cost-Effective A/D 8-bit OTP MCU HT46R003B Cost-Effective A/D 8-bit OTP MCU IftheActiveEdgeSelectbitTEGwhichisbit3oftheTimerControlRegisterislow,onceahigh tolowtransitionhasbeenreceivedontheexternaltimerpin,theTimer/EventCounterwillstart countinguntiltheexternaltimerpinreturnstoitsoriginalhighlevel.Atthispointtheenablebitwill beautomaticallyresettozeroandtheTimer/EventCounterwillstopcounting.IftheActiveEdge Selectbitishigh,theTimer/EventCounterwillbegincountingoncealowtohightransitionhas beenreceivedontheexternaltimerpinandstopcountingwhentheexternaltimerpinreturnstoits originallowlevel.Asbefore,theenablebitwillbeautomaticallyresettozeroandtheTimer/Event Counterwillstopcounting.Itisimportanttonotethatinthepulsewidthcapturemode,theenable bitisautomaticallyresettozerowhentheexternalcontrolsignalontheexternaltimerpinreturns toitsoriginallevel,whereasintheothertwomodestheenablebitcanonlyberesettozerounder programcontrol. TheresidualvalueintheTimer/EventCounter,whichcannowbereadbytheprogram,therefore representsthelengthofthepulsereceivedontheTMRpin.Astheenablebithasnowbeenreset, anyfurthertransitionsontheexternaltimerpinwillbeignored.Thetimercannotbeginfurtherpulse widthcaptureuntiltheenablebitissethighagainbytheprogram.Inthisway,singleshotpulse measurementscanbeeasilymade.ItshouldbenotedthatinthismodetheTimer/EventCounteris controlledbylogicaltransitionsontheexternaltimerpinandnotbythelogiclevel.WhentheTimer/ EventCounterisfullandoverflows,aninterruptsignalisgeneratedandtheTimer/EventCounter willreloadthevaluealreadyloadedintothepreloadregisterandcontinuecounting.Theinterrupt canbedisabledbyensuringthattheTimer/EventCounterInterruptEnablebitinthecorresponding InterruptControlRegister,itisresettozero.AstheTMRpinissharedwithanI/Opin,toensure thatthepinisconfiguredtooperateasapulsewidthcapturepin,twothingshavetobeimplemented. ThefirstistoensurethattheOperatingModeSelectbitsintheTimerControlRegisterplacethe Timer/EventCounterinthepulsewidthcapturemode,thesecondistoensurethattheportcontrol registerconfigurethepinasaninput. +1 +2 +3 +4 Ti me r Ex te rn al T MR Pi n I npu t TO N - wi th T EG =0 In te r nal C lo ck o r Pr e sca le r Ou t put In cr em en t Ti me r C oun te r Pr e sca le r Ou t p ut i s sa m p le d at e ve r y fa lli n g e d g e of T 1. Pulse Width Capture Mode Timing Chart (TEG=0) Prescaler BitsTPSC2~TPSC0oftheTMRCregistercanbeusedtodefineadivisionratiofortheinternal clocksourceoftheTimer/EventCounterenablinglongertimeoutperiodstobeset. |
|
링크 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 |