| поискавой системы для электроныых деталей |
|
HT45F4MA датащи(PDF) 57 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F4MA датащи(HTML) 57 Page - Holtek Semiconductor Inc |
|
57 / 145 page ![]() Rev. 1.20 5� De�e��e� 1�� 201� Rev. 1.20 57 De�e��e� 1�� 201� HT45F4MA/HT45FH4MA/HT45FH4MA-1 Power Bank Flash MCU HT45F4MA/HT45FH4MA/HT45FH4MA-1 Power Bank 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. T1 T2 T3 T4 T1 T2 T3 T4 Wr it e to P or t R ead fr om P or t S yst em C lo ck Po rt D at a Read/Wite Timing PortAhastheadditionalcapabilityofprovidingwake-upfunctions.Whenthedeviceisinthe SLEEPorIDLEMode,variousmethodsareavailabletowakethedeviceup.Oneoftheseisahigh tolowtransitionofanyofthePortApins.SingleormultiplepinsonPortAcanbesetuptohavethis function. Timer Modules – TM Oneofthemostfundamentalfunctionsinanymicrocontrollerdeviceistheabilitytocontroland measuretime.ToimplementtimerelatedfunctionsthedeviceincludesseveralTimerModules, abbreviatedtothenameTM.TheTMsaremulti-purposetimingunitsandservetoprovide operationssuchasTimer/Counter,InputCapture,CompareMatchOutputandSinglePulseOutput aswellasbeingthefunctionalunitforthegenerationofPWMsignals.EachoftheTMshastwo individualinterrupts.TheadditionofinputandoutputpinsforeachTMensuresthatusersare providedwithtimingunitswithawideandflexiblerangeoffeatures. ThecommonfeaturesofthedifferentTMtypesaredescribedherewithmoredetailedinformation providedintheindividualStandardandperiodicTMsection. Introduction Thedevicecontainsa16-bitStandardTManda10-bitPeriodicTM,eachTMhavingareference nameofTM0andTM1.Althoughsimilarinnature,thedifferentTMtypesvaryintheirfeature complexity.ThecommonfeaturestotheStandardandPeriodicTMswillbedescribedinthissection andthedetailedoperationwillbedescribedincorrespondingsections.Themainfeaturesofthe StandardTMaresummarisedintheaccompanyingtable. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |