| Electronic Components Datasheet Search |
|
HT46R002 Datasheet(PDF) 38 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R002 Datasheet(HTML) 38 Page - Holtek Semiconductor Inc |
|
38 / 83 page ![]() Rev. 1.21 38 April 11, 2017 Rev. 1.21 39 April 11, 2017 HT46R002/HT46R003 Cost-Effective A/D 8-Bit OTP MCU HT46R002/HT46R003 Cost-Effective A/D 8-Bit OTP MCU V DD M U X R ead Da ta R egi st er C ont ro l Bi t Da ta B us Wr it e C ont ro l R egi st er Ch ip R es et R ead Co nt ro l Re gi st er Wr it e Da ta R egi st er Da ta B it A/ D I nput P in s AC S1 ~A CS 0 To A /D C onv er te r We ak Pu ll- up A nal og I npu t Se le ct or D Q CK S Q D Q CK S Q Pu ll -H ig h R egi st er Se le ct 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. T1 T2 T3 T4 T1 T2 T3 T4 Wr it e to P or t Re ad f ro m Po rt S yst em C lo ck Po r t D at a Read Modify Write Timing PinsPA0~PA2,PA5eachhavewake-upfunctions,selectedviathePAWUregister.Whenthedevice isintheSleepMode,variousmethodsareavailabletowakethedeviceup.Oneoftheseisahighto lowtransitionofanypins.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 |