| Electronic Components Datasheet Search |
|
HT46R003B Datasheet(PDF) 39 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R003B Datasheet(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. |
|
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 |