| Electronic Components Datasheet Search |
|
HT66F0187 Datasheet(PDF) 66 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F0187 Datasheet(HTML) 66 Page - Holtek Semiconductor Inc |
|
66 / 192 page ![]() Rev. 1.20 66 ����st 2�� 201� Rev. 1.20 6� ����st 2�� 201� HT66F0187 A/D Flash MCU with EEPROM HT66F0187 A/D Flash MCU with EEPROM V DD M U X Re ad D at a R egi st er Co nt ro l Bi t Da ta B us Wr it e C ont ro l R egi st er Ch ip R es et Re ad C on tr ol R egi st er Wr it e Da ta R eg is te r Da ta B it A/ D I npu t Pi ns SAC S2 ~S AC S0 , SA IN S2 ~ SAI NS 0 To A /D C onv er te r We ak Pu ll -u p An al og In put Se le ct or D Q CK S Q D Q CK S Q Pu ll- Hi gh Re gi st er Se le ct A/D Input/Output Structure Programming Considerations Withintheuserprogram,oneofthefirstthingstoconsiderisportinitialisation.Afterareset,allof theI/Odataandportcontrolregisterswillbesethigh.ThismeansthatallI/Opinswilldefaultto aninputstate,thelevelofwhichdependsontheotherconnectedcircuitryandwhetherpull-high selectionshavebeenchosen.Iftheportcontrolregisters,PAC~PFC,arethenprogrammedtosetup somepinsasoutputs,theseoutputpinswillhaveaninitialhighoutputvalueunlesstheassociated portdataregisters,PA~PF,arefirstprogrammed.Selectingwhichpinsareinputsandwhichare outputscanbeachievedbyte-widebyloadingthecorrectvaluesintotheappropriateportcontrol registerorbyprogrammingindividualbitsintheportcontrolregisterusingthe“SET[m].i”and “CLR[m].i”instructions.Notethatwhenusingthesebitcontrolinstructions,aread-modify-write operationtakesplace.Themicrocontrollermustfirstreadinthedataontheentireport,modifyitto therequirednewbitvaluesandthenrewritethisdatabacktotheoutputports. Thepower-onresetconditionoftheA/DconvertercontrolregistersensuresthatanyA/Dinput pins,whicharealwayssharedwithotherI/Ofunctions,willbesetupasanaloginputsafterareset. AlthoughthesepinswillbeconfiguredasA/Dinputsafterareset,theA/Dconverterwillnotbe switchedon.ItisthereforeimportanttonotethatifitisrequiredtousethesepinsasI/Odigital inputpinsorasotherfunctions,theA/Dconvertercontrolregistersmustbecorrectlyprogrammed toremovetheA/Dfunction.NotealsothatastheA/Dchannelisenabled,anyinternalpull-high resistorconnectionswillberemoved. PortAhastheadditionalcapabilityofprovidingwake-upfunctions.Whenthedeviceisinthe SLEEPorIDLEMode,variousmethodsareavailabletowakethedeviceup.Oneoftheseisahigh tolowtransitionofanyofthePortApins.SingleormultiplepinsonPortAcanbesetuptohavethis function. |
|
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 |