| Electronic Components Datasheet Search |
|
HT48R002 Datasheet(PDF) 43 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT48R002 Datasheet(HTML) 43 Page - Holtek Semiconductor Inc |
|
43 / 71 page ![]() Rev. 1.11 42 April 11, 2017 Rev. 1.11 43 April 11, 2017 HT48R002/HT48R003 Cost-Effective I/O 8-Bit OTP MCU HT48R002/HT48R003 Cost-Effective I/O 8-Bit OTP MCU +1 +2 +3 +4 Ti me r Ex te rn al T MR Pi n I npu t T0 ON - w it h T0 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 (T0EG=0) Prescaler BitsT0PSC2~T0PSC0oftheTMR0Cregistercanbeusedtodefineadivisionratiofortheinternal clocksourceoftheTimer/EventCounterenablinglongertimeoutperiodstobeset. PFD Function (for HT48R003) TheProgrammableFrequencyDividerprovidesameansofproducingavariablefrequencyoutput suitableforapplication,suchassomeinterfacesrequiringaprecisefrequencygenerator. TheTimer/EventCounteroverflowsignalistheclocksourceforthePFDfunction,whichis controlledbyPFDCbitinCTRL0.ForthisdevicetheclocksourcecancomefromTimer/Event Counter0.Theoutputfrequencyiscontrolledbyloadingtherequiredvaluesintothetimerprescaler andtimerregisterstogivetherequireddivisionratio.Thecounterwillbegintocount-upfromthis preloadregistervalueuntilfull,atwhichpointanoverflowsignalisgenerated,causingboththePFD outputstochangestate.Thenthecounterwillbeautomaticallyreloadedwiththepreloadregister valueandcontinuecounting-up.IftheCTRL0registerhasselectedthePFDfunction,thenforPFD outputtooperate,itisessentialforthePortAcontrolregisterPACtosetthePFDpinsasoutputs. PA6mustbesethightoactivatethePFD.Theoutputdatabitscanbeusedastheon/offcontrolbit forthePFDoutputs.NotethatthePFDoutputswillallbelowiftheoutputdatabitisclearedto zero. Ti me r Ov er fl ow PF D Cl oc k PA 6 Da ta PF D Ou t put a t PA 6 PFD Function I/O Interfacing TheTimer/EventCounter,whenconfiguredtorunintheeventcounterorpulsewidthcapture mode,requirestheuseofanexternaltimerpinforitsoperation.Asthispinisasharedpinitmust beconfiguredcorrectlytoensurethatitissetforuseasaTimer/EventCounterinputpin.Thisis achievedbyensuringthatthemodeselectsbitsintheTimer/EventCountercontrolregister,either theeventcounterorpulsewidthcapturemode.AdditionallythecorrespondingPortControlRegister bitmustbesethightoensurethatthepinissetasaninput.Anypull-highresistorconnectedtothis pinwillremainvalidevenifthepinisusedasaTimer/EventCounterinput. |
|
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 |