| поискавой системы для электроныых деталей |
|
HT45F2020 датащи(PDF) 57 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F2020 датащи(HTML) 57 Page - Holtek Semiconductor Inc |
|
57 / 85 page ![]() Rev. 1.00 56 April 11, 2017 Rev. 1.00 57 April 11, 2017 HT45F2020/HT45F2022 Sound Effect Generator Flash MCU HT45F2020/HT45F2022 Sound Effect Generator Flash MCU Capture Input Mode ToselectthismodebitsPTM1andPTM0inthePTMC1registershouldbesetto01respectively. Thismodeenablesexternalsignalstocaptureandstorethepresentvalueoftheinternalcounter andcanthereforebeusedforapplicationssuchaspulsewidthmeasurements.Theexternalsignalis suppliedonthePTPIorPTCKpin,selectedbythePTCAPTSbitinthePTMC1register.Theinput pinactiveedgecanbeeitherarisingedge,afallingedgeorbothrisingandfallingedges;theactive edgetransitiontypeisselectedusingthePTIO1andPTIO0bitsinthePTMC1register.Thecounter isstartedwhenthePTONbitchangesfromlowtohighwhichisinitiatedusingtheapplication program. WhentherequirededgetransitionappearsonthePTPIorPTCKpinthepresentvalueinthecounter willbelatchedintotheCCRAregistersandaPTMinterruptgenerated.Irrespectiveofwhatevents occuronthePTPIorPTCKpinthecounterwillcontinuetofreerununtilthePTONbitchanges fromhightolow.WhenaCCRPcomparematchoccursthecounterwillresetbacktozero;inthis waytheCCRPvaluecanbeusedtocontrolthemaximumcountervalue.WhenaCCRPcompare matchoccursfromComparatorP,aPTMinterruptwillalsobegenerated.Countingthenumberof overflowinterruptsignalsfromtheCCRPcanbeausefulmethodinmeasuringlongpulsewidths. ThePTIO1andPTIO0bitscanselecttheactivetriggeredgeonthePTPIorPTCKpintobearising edge,fallingedgeorbothedgetypes.IfthePTIO1andPTIO0bitsarebothsethigh,thennocapture operationwilltakeplaceirrespectiveofwhathappensonthePTPIorPTCKpin,howeveritmustbe notedthatthecounterwillcontinuetorun. AsthePTPIorPTCKpinispinsharedwithotherfunctions,caremustbetakenifthePTMisinthe InputCaptureMode.Thisisbecauseifthepinissetupasanoutput,thenanytransitionsonthispin maycauseaninputcaptureoperationtobeexecuted.ThePTCCLR,PTOCandPTPOLbitsarenot usedinthisMode. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |