| Electronic Components Datasheet Search |
|
HT46R004 Datasheet(PDF) 34 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R004 Datasheet(HTML) 34 Page - Holtek Semiconductor Inc |
|
34 / 84 page ![]() Rev. 1.30 34 �an�a�� ��� �01� Rev. 1.30 35 �an�a�� ��� �01� HT46R004 Cost-Effective A/D 8-Bit OTP MCU I/O Port Control Registers EachporthasitsowncontrolregisterknownasPAC,PBCandPCC,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 PAC� PAC5 PAC4 PAC3 PAC� 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 PBC Register Bit 7 6 5 4 3 2 1 0 Name PBC7 PBC� PBC5 PBC4 PBC3 PBC� PBC1 PBC0 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 PortBbit7~bit0Input/Outputcontrol 0:Output 1:Input PCC Register Bit 7 6 5 4 3 2 1 0 Name — — — — — — PCC1 PCC0 R/W — — — — — — R/W R/W POR — — — — — — 1 1 Bit7~2 Unimplemented,readas“0” Bit1~0 PortCbit1~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 |