| 전자부품 데이터시트 검색엔진 |
|
HT45F39 데이터시트(PDF) 47 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F39 데이터시트(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. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |