| Electronic Components Datasheet Search |
|
HT45F3230 Datasheet(PDF) 83 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F3230 Datasheet(HTML) 83 Page - Holtek Semiconductor Inc |
|
83 / 148 page ![]() Rev. 1.00 82 January 13, 2017 Rev. 1.00 83 January 13, 2017 HT45F3230 IR Sensing/Motor Driving Flash MCU HT45F3230 IR Sensing/Motor Driving Flash MCU Capture Input Mode ToselectthismodebitsPTnM1andPTnM0inthePTMnC1registershouldbesetto01 respectively.Thismodeenablesexternalsignalstocaptureandstorethepresentvalueoftheinternal counterandcanthereforebeusedforapplicationssuchaspulsewidthmeasurements.Theexternal signalissuppliedonthePTPnIorPTCKnpinwhichisselectedusingthePTnCAPTSbitinthe PTMnC1register.Theinputpinactiveedgecanbeeitherarisingedge,afallingedgeorbothrising andfallingedges;theactiveedgetransitiontypeisselectedusingthePTnIO1andPTnIO0bitsin thePTMnC1register.ThecounterisstartedwhenthePTnONbitchangesfromlowtohighwhichis initiatedusingtheapplicationprogram. WhentherequirededgetransitionappearsonthePTPnIorPTCKnpinthepresentvalueinthe counterwillbelatchedintotheCCRAregistersandaPTMninterruptgenerated.Irrespectiveof whateventsoccuronthePTPnIorPTCKnpin,thecounterwillcontinuetofreerununtilthePTnON bitchangesfromhightolow.WhenaCCRPcomparematchoccursthecounterwillresetbackto zero;inthiswaytheCCRPvaluecanbeusedtocontrolthemaximumcountervalue.WhenaCCRP comparematchoccursfromComparatorP,aPTMninterruptwillalsobegenerated.Countingthe numberofoverflowinterruptsignalsfromtheCCRPcanbeausefulmethodinmeasuringlongpulse widths.ThePTnIO1andPTnIO0bitscanselecttheactivetriggeredgeonthePTPnIorPTCKnpin tobearisingedge,fallingedgeorbothedgetypes.IfthePTnIO1andPTnIO0bitsarebothsethigh, thennocaptureoperationwilltakeplaceirrespectiveofwhathappensonthePTPnIorPTCKnpin, howeveritmustbenotedthatthecounterwillcontinuetorun. AsthePTPnIorPTCKnpinispinsharedwithotherfunctions,caremustbetakenifthePTMnisin theCaptureInputMode.Thisisbecauseifthepinissetupasanoutput,thenanytransitionsonthis pinmaycauseaninputcaptureoperationtobeexecuted.ThePTnCCLR,PTnOCandPTnPOLbits arenotusedinthisMode. |
|
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 |