| Electronic Components Datasheet Search |
|
HT45F39 Datasheet(PDF) 47 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F39 Datasheet(HTML) 47 Page - Holtek Semiconductor Inc |
|
47 / 102 page ![]() Rev. 1.10 46 July 01, 2016 Rev. 1.10 47 July 01, 2016 HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU Timer Module Pin Control Register – TMPC Bit 7 6 5 4 3 2 1 0 Name — — — — — TP2C TP1C TP0C R/W — — — — — R/W R/W R/W POR — — — — — 0 0 0 Bit7~3 unimplemented,readas"0" Bit2 TP2C:TP0andTP1pinremappingcontrol 0:TP0onPA0;TP1onPA2 1:TP0onPA7;TP1onPA3 Bit1 TP1C:TP1pincontrol 0:disable 1:enable ThisbitisusedtocontroltheTP1pinfunction.Ifthisbitissetto1toenabletheTP1 pinfunctionbuttheTM1isturnedoff,theTP1pinfunctionwillbedisabled,TheTP1 pinfunctionwillalsobedisabledifthecorrespondinganaloginputfunctionisenabled. Bit0 TP0C:TP0pincontrol 0:disable 1:enable ThisbitisusedtocontroltheTP0pinfunction.Ifthisbitissetto1toenabletheTP0 pinfunctionbuttheTM0isturnedoff,theTP0pinfunctionwillbedisabled,TheTP0 pinfunctionwillalsobedisabledifthecorrespondinganaloginputfunctionisenabled. Programming Considerations TheTMCounterRegistersandtheCapture/CompareCCRA,being10-bit,allhavealowandhigh bytestructure.Thehighbytescanbedirectlyaccessed,butasthelowbytescanonlybeaccessed viaaninternal8-bitbuffer,readingorwritingtotheseregisterpairsmustbecarriedoutinaspecific way.Theimportantpointtonoteisthatdatatransfertoandfromthe8-bitbufferanditsrelatedlow byteonlytakesplacewhenawriteorreadoperationtoitscorrespondinghighbyteisexecuted. Thefollowingstepsshowthereadandwriteprocedures: • WritingDatatoCCRA ♦ Step1.WritedatatoLowByteTMxAL –notethatheredataisonlywrittentothe8-bitbuffer. ♦ Step2.WritedatatoHighByteTMxAH –Heredataiswrittendirectlytothehighbyteregisterandsimultaneouslydataislatchedfrom the8-bitbuffertotheLowByteregister. • ReadingDatafromtheCounterRegistersandCCRA ♦ Step1.ReaddatafromtheHighByteTMxDH,TMxAH –HeredataisreaddirectlyfromtheHighByteregisterandsimultaneouslydataislatched fromtheLowByteregisterintothe8-bitbuffer. ♦ Step2.ReaddatafromtheLowByteTMxDL,TMxAL –thisstepreadsdatafromthe8-bitbuffer. |
|
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 |