| Electronic Components Datasheet Search |
|
HT45F5N Datasheet(PDF) 72 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F5N Datasheet(HTML) 72 Page - Holtek Semiconductor Inc |
|
72 / 202 page ![]() Rev. 1.00 7� �ove��e� 1�� �01� Rev. 1.00 73 �ove��e� 1�� �01� HT45F5N/HT45FH5N Power Bank ASSP Flash MCU HT45F5N/HT45FH5N Power Bank ASSP Flash MCU Programming Considerations Withintheuserprogram,oneofthefirstthingstoconsiderisportinitialisation.Afterareset,allof theI/Odataandportcontrolregisterswillbesethigh.ThismeansthatallI/Opinswilldefaultto aninputstate,thelevelofwhichdependsontheotherconnectedcircuitryandwhetherpull-high selectionshavebeenchosen.Iftheportcontrolregisters,PAC~PDC,arethenprogrammedtosetup somepinsasoutputs,theseoutputpinswillhaveaninitialhighoutputvalueunlesstheassociated portdataregisters,PA~PD,arefirstprogrammed.Selectingwhichpinsareinputsandwhichare outputscanbeachievedbyte-widebyloadingthecorrectvaluesintotheappropriateportcontrol registerorbyprogrammingindividualbitsintheportcontrolregisterusingthe"SET[m].i"and "CLR[m].i"instructions.Notethatwhenusingthesebitcontrolinstructions,aread-modify-write operationtakesplace.Themicrocontrollermustfirstreadinthedataontheentireport,modifyitto therequirednewbitvaluesandthenrewritethisdatabacktotheoutputports. 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,havingareferencenameof STMandPTM.Althoughsimilarinnature,thedifferentTMtypesvaryintheirfeaturecomplexity. ThecommonfeaturestotheStandardandPeriodicTMswillbedescribedinthissectionandthe detailedoperationwillbedescribedincorrespondingsections.Themainfeaturesanddifferences betweenthetwotypesofTMsaresummarisedintheaccompanyingtable. Function STM PTM Ti�e�/Counte� √ √ I/P Captu�e √ √ Co�pa�e Match Output √ √ PWM Channels 1 1 Single Pulse Output 1 1 PWM Align�ent Edge Edge PWM Adjust�ent Pe�iod & Duty Duty o� Pe�iod 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 |