| Electronic Components Datasheet Search |
|
HT66F302 Datasheet(PDF) 90 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F302 Datasheet(HTML) 90 Page - Holtek Semiconductor Inc |
|
90 / 129 page ![]() Rev. 1.11 90 April 11, 2017 Rev. 1.11 91 April 11, 2017 HT66F302/HT66F303 Cost-Effective Flash MCU with EEPROM HT66F302/HT66F303 Cost-Effective Flash MCU with EEPROM Capture Input Mode ToselectthismodebitsPTM1andPTM0inthePTMC1registershouldbesetto01respectively. Thismodeenablesexternalsignalstocaptureandstorethepresentvalueoftheinternalcounter andcanthereforebeusedforapplicationssuchaspulsewidthmeasurements.Theexternalsignal issuppliedonthePTPIorPTCKpin,selectedbythePTCKSbitinthePTMC1register.Theinput pinactiveedgecanbeeitherarisingedge,afallingedgeorbothrisingandfallingedges;theactive edgetransitiontypeisselectedusingthePTIO1andPTIO0bitsinthePTMC1register.Thecounter isstartedwhenthePTONbitchangesfromlowtohighwhichisinitiatedusingtheapplication program. WhentherequirededgetransitionappearsonthePTPIorPTCKpinthepresentvalueinthecounter willbelatchedintotheCCRAregisterandaTMinterruptgenerated.Irrespectiveofwhatevents occuronthePTPIorPTCKpinthecounterwillcontinuetofreerununtilthePTONbitchanges fromhightolow.WhenaCCRPcomparematchoccursthecounterwillresetbacktozero;inthis waytheCCRPvaluecanbeusedtocontrolthemaximumcountervalue.WhenaCCRPcompare matchoccursfromComparatorP,aTMinterruptwillalsobegenerated.Countingthenumberof overflowinterruptsignalsfromtheCCRPcanbeausefulmethodinmeasuringlongpulsewidths. ThePTIO1andPTIO0bitscanselecttheactivetriggeredgeonthePTPIorPTCKpintobearising edge,fallingedgeorbothedgetypes.IfthePTIO1andPTIO0bitsarebothsethigh,thennocapture operationwilltakeplaceirrespectiveofwhathappensonthePTPIorPTCKpin,howeveritmustbe notedthatthecounterwillcontinuetorun. AsthePTPIorPTCKpinispinsharedwithotherfunctions,caremustbetakenifthePTMisinthe CaptureInputMode.Thisisbecauseifthepinissetupasanoutput,thenanytransitionsonthispin maycauseaninputcaptureoperationtobeexecuted.ThePTCCLR,PTOCandPTPOLbitsarenot usedinthisMode. |
|
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 |