| Electronic Components Datasheet Search |
|
HT66F005 Datasheet(PDF) 55 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F005 Datasheet(HTML) 55 Page - Holtek Semiconductor Inc |
|
55 / 109 page ![]() Rev. 1.30 54 ���i� ��� �01� Rev. 1.30 55 ���i� ��� �01� HT66F005/HT66F006 Cost-Effective A/D Flash MCU with EEPROM HT66F005/HT66F006 Cost-Effective A/D Flash MCU with EEPROM Programming Considerations Withintheuserprogram,oneofthefirstthingstoconsiderisportinitialisation.Afterareset,allof theI/Odataandportcontrolregisterwillbesethigh.ThismeansthatallI/Opinswilldefaultto aninputstate,thelevelofwhichdependsontheotherconnectedcircuitryandwhetherpull-high selectionshavebeenchosen.Iftheportcontrolregister,PAC,isthenprogrammedtosetupsome pinsasoutputs,theseoutputpinswillhaveaninitialhighoutputvalueunlesstheassociatedport dataregister,PA,isfirstprogrammed.Selectingwhichpinsareinputsandwhichareoutputscan beachievedbyte-widebyloadingthecorrectvaluesintotheappropriateportcontrolregisteror byprogrammingindividualbitsintheportcontrolregisterusingthe"SET[m].i"and"CLR[m].i" instructions.Notethatwhenusingthesebitcontrolinstructions,aread-modify-writeoperationtakes place.Themicrocontrollermustfirstreadinthedataontheentireport,modifyittotherequirednew bitvaluesandthenrewritethisdatabacktotheoutputports. Thepower-onresetconditionoftheA/DconvertercontrolregistersensuresthatanyA/Dinput pinswhicharealwayssharedwithotherI/Ofunctionswillbesetupasanaloginputsafterareset. 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. Timer Modules – TM Oneofthemostfundamentalfunctionsinanymicrocontrollerdeviceistheabilitytocontroland measuretime.ToimplementtimerelatedfunctionseachdeviceincludesseveralTimerModules, abbreviatedtothenameTM.TheTMsaremulti-purposetimingunitsandservetoprovide operationssuchasTimer/Counter,CompareMatchOutputaswellasbeingthefunctionalunitfor thegenerationofPWMsignals.EachoftheTMshastwoindividualinterrupts.Theadditionof inputandoutputpinsforeachTMensuresthatusersareprovidedwithtimingunitswithawideand flexiblerangeoffeatures. Introduction ThedevicescontaintwoTMswitheachTMhavingareferencenameofTM0andTM1.Each individualTMcanbecategorisedasacertaintype,namelyCompactTypeTM,socalledCTM.The mainfeaturesoftheTMsaresummarisedintheaccompanyingtable. Function CTM Time�/Counte� √ Com�a�e Match Out�ut √ PWM Channe�s 1 PWM ��ignment Edge PWM �djustment Pe�iod & Duty Duty o� Pe�iod TM Function Summary |
|
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 |