| Electronic Components Datasheet Search |
|
HT46R004 Datasheet(PDF) 43 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R004 Datasheet(HTML) 43 Page - Holtek Semiconductor Inc |
|
43 / 84 page ![]() Rev. 1.30 4� �an�a�� ��� �01� Rev. 1.30 43 �an�a�� ��� �01� HT46R004 Cost-Effective A/D 8-Bit OTP MCU ItshouldbenotedthatinthismodetheTimer/EventCounteriscontrolledbylogicaltransitions ontheexternaltimerpinandnotbythelogiclevel.WhentheTimer/EventCounterisfulland overflows,aninterruptsignalisgeneratedandtheTimer/EventCounterwillreloadthevaluealready loadedintothepreloadregisterandcontinuecounting.Theinterruptcanbedisabledbyensuring thattheTimer/EventCounterInterruptEnablebitinthecorrespondingInterruptControlRegister,it isresettozero. AstheTMRpinissharedwithanI/Opin,toensurethatthepinisconfiguredtooperateasapulse widthcapturepin,twothingshavetobeimplemented.ThefirstistoensurethattheOperatingMode SelectbitsintheTimerControlRegisterplacetheTimer/EventCounterinthepulsewidthcapture mode,thesecondistoensurethattheportcontrolregisterconfigurethepinasaninput. Pulse Width Capture Mode Timing Chart (T0EG=0) Prescaler BitsT0PSC2~T0PSC0oftheTMR0Cregistercanbeusedtodefineadivisionratiofortheinternal clocksourceoftheTimer/EventCounterenablinglongertimeoutperiodstobeset. PFD Function TheProgrammableFrequencyDividerprovidesameansofproducingavariablefrequencyoutput suitableforapplication,suchassomeinterfacesrequiringaprecisefrequencygenerator. TheTimer/EventCounteroverflowsignalistheclocksourceforthePFDfunction,whichis controlledbyPFDCbitinCTRL0.ForthisdevicetheclocksourcecancomefromTimer/Event Counter0.Theoutputfrequencyiscontrolledbyloadingtherequiredvaluesintothetimerprescaler andtimerregisterstogivetherequireddivisionratio.Thecounterwillbegintocount-upfrom thispreloadregistervalueuntilfull,atwhichpointanoverflowsignalisgenerated,causingboth thePFDoutputstochangestate.Thenthecounterwillbeautomaticallyreloadedwiththepreload registervalueandcontinuecounting-up. IftheCTRL0registerhasselectedthePFDfunction,thenforPFDoutputtooperate,itisessential forthePortBcontrolregisterPBCtosetthePFDpinsasoutputs.PB3mustbesethightoactivate thePFD.Theoutputdatabitscanbeusedastheon/offcontrolbitforthePFDoutputs.Notethatthe PFDoutputswillallbelowiftheoutputdatabitisclearedtozero. PFD Function |
|
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 |