| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT46R003B bảng dữ liệu(PDF) 39 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R003B bảng dữ liệu(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 |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |