| Electronic Components Datasheet Search |
|
HT45F2020 Datasheet(PDF) 50 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F2020 Datasheet(HTML) 50 Page - Holtek Semiconductor Inc |
|
50 / 85 page ![]() Rev. 1.00 50 April 11, 2017 Rev. 1.00 51 April 11, 2017 HT45F2020/HT45F2022 Sound Effect Generator Flash MCU HT45F2020/HT45F2022 Sound Effect Generator Flash MCU PTMRPH Register Bit 7 6 5 4 3 2 1 0 Name — — — — — — PTRP9 PTRP8 R/W — — — — — — R/W R/W POR — — — — — — 0 0 Bit7~2 Unimplemented,readas“0” Bit1~0 PTMCCRPHighByteRegisterbit1~bit0 PTM10-bitCCRPbit9~bit8 Periodic Type TM Operation Modes ThePeriodicTypeTMcanoperateinoneoffiveoperatingmodes,CompareMatchOutputMode, PWMOutputMode,SinglePulseOutputMode,CaptureInputModeorTimer/CounterMode.The operatingmodeisselectedusingthePTM1andPTM0bitsinthePTMC1register. Compare Match Output Mode Toselectthismode,bitsPTM1andPTM0inthePTMC1register,shouldbesetto00respectively. Inthismodeoncethecounterisenabledandrunningitcanbeclearedbythreemethods.Theseare acounteroverflow,acomparematchfromComparatorAandacomparematchfromComparatorP. WhenthePTCCLRbitislow,therearetwowaysinwhichthecountercanbecleared.Oneiswhen acomparematchfromComparatorP,theotheriswhentheCCRPbitsareallzerowhichallowsthe countertooverflow.HerebothPTMAFandPTMPFinterruptrequestflagsforComparatorAand ComparatorPrespectively,willbothbegenerated. IfthePTCCLRbitinthePTMC1registerishighthenthecounterwillbeclearedwhenacompare matchoccursfromComparatorA.However,hereonlythePTMAFinterruptrequestflagwillbe generatedevenifthevalueoftheCCRPbitsislessthanthatoftheCCRAregisters.Thereforewhen PTCCLRishighnoPTMPFinterruptrequestflagwillbegenerated.IntheCompareMatchOutput Mode,theCCRAcannotbesetto“0”. Asthenameofthemodesuggests,afteracomparisonismade,thePTMoutputpinwillchange state.ThePTMoutputpinconditionhoweveronlychangesstatewhenaPTMAFinterruptrequest flagisgeneratedafteracomparematchoccursfromComparatorA.ThePTMPFinterruptrequest flag,generatedfromacomparematchoccursfromComparatorP,willhavenoeffectonthePTM outputpin.ThewayinwhichthePTMoutputpinchangesstatearedeterminedbytheconditionof thePTIO1andPTIO0bitsinthePTMC1register.ThePTMoutputpincanbeselectedusingthe PTIO1andPTIO0bitstogohigh,togolowortotogglefromitspresentconditionwhenacompare matchoccursfromComparatorA.TheinitialconditionofthePTMoutputpin,whichissetupafter thePTONbitchangesfromlowtohigh,issetupusingthePTOCbit.NotethatifthePTIO1and PTIO0bitsarezerothennopinchangewilltakeplace. |
|
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 |