| Electronic Components Datasheet Search |
|
HT45F39 Datasheet(PDF) 44 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F39 Datasheet(HTML) 44 Page - Holtek Semiconductor Inc |
|
44 / 102 page ![]() Rev. 1.10 44 July 01, 2016 Rev. 1.10 45 July 01, 2016 HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU Programming Considerations Withintheuserprogram,oneofthefirstthingstoconsiderisportinitialisation.Afterareset,allof theI/Odataandportcontrolregisterswillbesethigh.ThismeansthatallI/Opinswilldefaultto aninputstate,thelevelofwhichdependsontheotherconnectedcircuitryandwhetherpull-high selectionshavebeenchosen.Iftheportcontrolregisters,PAC~PBC,arethenprogrammedtosetup somepinsasoutputs,theseoutputpinswillhaveaninitialhighoutputvalueunlesstheassociated portdataregisters,PA~PB,arefirstprogrammed.Selectingwhichpinsareinputsandwhichare outputscanbeachievedbyte-widebyloadingthecorrectvaluesintotheappropriateportcontrol registerorbyprogrammingindividualbitsintheportcontrolregisterusingthe"SET[m].i"and CLR[m].i"instructions.Notethatwhenusingthesebitcontrolinstructions,aread-modify-write operationtakesplace.Themicrocontrollermustfirstreadinthedataontheentireport,modifyitto therequirednewbitvaluesandthenrewritethisdatabacktotheoutputports. PortAhastheadditionalcapabilityofprovidingwake-upfunctions.Whenthedevicesareinthe SLEEPMode,variousmethodsareavailabletowakethedevicesup.Oneoftheseisahightolow transitionofanyofthePortApins.SingleormultiplepinsonPortAcanbesetuptohavethis function.Inaddition,thePORTApinsalsoprovideOpenDrainI/Ostructureoptionswhichcanbe controlledbythespecificregister. Generic Input/Output Structure |
|
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 |