| Electronic Components Datasheet Search |
|
HT46R002 Datasheet(PDF) 35 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R002 Datasheet(HTML) 35 Page - Holtek Semiconductor Inc |
|
35 / 83 page ![]() Rev. 1.21 34 April 11, 2017 Rev. 1.21 35 April 11, 2017 HT46R002/HT46R003 Cost-Effective A/D 8-Bit OTP MCU HT46R002/HT46R003 Cost-Effective A/D 8-Bit OTP MCU I/O Port Control Registers EachporthasitsowncontrolregisterknownasPAC,PCC,whichcontroltheinput/output configuration.Withthiscontrolregister,eachI/Opinwithorwithoutpull-highresistorscanbe reconfigureddynamicallyundersoftwarecontrol.FortheI/Opintofunctionasaninput,the correspondingbitofthecontrolregistermustbewrittenasa“1”.Thiswillthenallowthelogic stateoftheinputpintobedirectlyreadbyinstructions.Whenthecorrespondingbitofthecontrol registeriswrittenasa“0”,theI/OpinwillbesetasaCMOSoutput.Ifthepiniscurrentlysetasan output,instructionscanstillbeusedtoreadtheoutputregister.However,itshouldbenotedthatthe programwillinfactonlyreadthestatusoftheoutputdatalatchandnottheactuallogicstatusofthe outputpin. PAC Register Bit 7 6 5 4 3 2 1 0 Name PAC7 PAC6 PAC5 PAC4 PAC3 PAC2 PAC1 PAC0 R/W R/W R/W R/W R/W R/W R/W R/W R/W POR 1 1 1 1 1 1 1 1 Bit7~0 PortAbit7~bit0Input/Outputcontrol 0:Output 1:Input PCC Register – HT46R003 only Bit 7 6 5 4 3 2 1 0 Name — — PCC5 PCC4 PCC3 PCC2 PCC1 PCC0 R/W — — R/W R/W R/W R/W R/W R/W POR — — 1 1 1 1 1 1 Bit7~6 Unimplemented,readas"0" Bit5~0 PortCbit5~bit0Input/Outputcontrol 0:Output 1:Input |
|
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 |