| Electronic Components Datasheet Search |
|
HT46R004 Datasheet(PDF) 37 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R004 Datasheet(HTML) 37 Page - Holtek Semiconductor Inc |
|
37 / 84 page ![]() Rev. 1.30 3� �an�a�� ��� �01� Rev. 1.30 37 �an�a�� ��� �01� HT46R004 Cost-Effective A/D 8-Bit OTP MCU A/D Input/Output Port Programming Considerations Withintheuserprogram,oneofthethingsfirsttoconsiderisportinitialization.Afterareset,all oftheI/Odataandportcontrolregisterswillbesettohigh.ThismeansthatallI/Opinswillbe defaultedtoaninputstate,thelevelofwhichdependsontheotherconnectedcircuitryandwhether pull-highselectionshavebeenchosen.Iftheportcontrolregistersarethenprogrammedtosetsome pinsasoutputs,theseoutputpinswillhaveaninitialhighoutputvalueunlesstheassociatedport dataregistersarefirstprogrammed.Selectingwhichpinsareinputsandwhichareoutputscanbe achievedbyte-widebyloadingthecorrectvaluesintotheappropriateportcontrolregisterorby programmingindividualbitsintheportcontrolregisterusingthe“SET[m].i”and“CLR[m].i” instructions.Notethatwhenusingthesebitcontrolinstructions,aread-modify-writeoperationtakes place.Themicrocontrollermustfirstreadinthedataontheentireport,modifyittotherequirednew bitvaluesandthenrewritethisdatabacktotheoutputports. Read Modify Write Timing PinsPA0~PA7eachhavewake-upfunctions,selectedviathePAWUregister.Whenthedeviceisin theSleepMode,variousmethodsareavailabletowakethedeviceup.Oneoftheseisahightolow transitionofanypins.SingleormultiplepinsonPortAcanbesettohavethisfunction. |
|
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 |