| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT45F12 bảng dữ liệu(PDF) 56 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F12 bảng dữ liệu(HTML) 56 Page - Holtek Semiconductor Inc |
|
56 / 104 page ![]() Rev. 0.00 5� �e�te��e� ��� �01� Rev. 0.00 57 �e�te��e� ��� �01� HT45F12 8-Bit Flash MCU with Op Amps & Comparators HT45F12 8-Bit Flash MCU with Op Amps & Comparators Programming Considerations Withintheuserprogram,oneofthefirstthingstoconsiderisportinitialisation.Afterareset,allof theI/Odataandportcontrolregisterswillbesethigh.ThismeansthatallI/Opinswilldefaultto aninputstate,thelevelofwhichdependsontheotherconnectedcircuitryandwhetherpull-high selectionshavebeenchosen.Iftheportcontrolregisters,PAC~PCC,arethenprogrammedtosetup somepinsasoutputs,theseoutputpinswillhaveaninitialhighoutputvalueunlesstheassociated portdataregisters,PA~PC,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 Modify Write Timing PortAhastheadditionalcapabilityofprovidingwake-upfunctions.Whenthedeviceisinthe SLEEPorIDLEMode,variousmethodsareavailabletowakethedeviceup.Oneoftheseisahigh tolowtransitionofanyofthePortApins.SingleormultiplepinsonPortAcanbesetuptohavethis function.Inaddition,thePortBpinsalsoprovideOpenDrainI/Ostructureoptionswhichcanbe controlledbythespecificregister. Timer/Event Counter Theprovisionoftimersformanimportantpartofanymicrocontroller,givingthedesignerameans ofcarryingouttimerelatedfunctions.Thedevicecontainsasiglecount-uptimerof8-bitcapacity. Asthetimerhasthreedifferentoperatingmodes,itcanbeconfiguredtooperateasageneraltimer, anexternaleventcounterorasapulsewidthcapturedevice.Theprovisionofaninternalprescaler totheclockcircuitryongivingaddedrangetothetimer. TherearetwotypesofregistersrelatedtotheTimer/EventCounter.Thefirstistheregistersthat containtheactualvalueoftheTimer/EventCounterandintowhichaninitialvaluecanbepreloaded. ReadingfromtheseregistersretrievesthecontentsoftheTimer/EventCounter.Thesecondtype ofassociatedregisteristheTimerControlRegisterwhichdefinesthetimeroptionsanddetermines howtheTimer/EventCounteristobeused.TheTimer/EventCountercanhaveitsclockconfigured tocomefromaninternalclocksource.Inaddition,itsclocksourcecanalsobeconfiguredtocome fromanexternaltimerpin. TO N Pr el oad R eg is te r Ti me r/ Ev ent Co un te r Da ta B us Re l oad Ov er fl ow to I nt er ru pt 2 8- Bi t Ti me r/ Ev en t Co unt er PF D0 ¸ Ti me r/ Ev ent C oun te r M ode C on tr ol 7- st a ge Pr es ca le r TP SC 2~ TP SC 0 (1 /1 ~1 /1 28 ) TM 1T M0 f SY S TM R TE Fi lt er Fi lt er O n/ Of f Co nf ig ur at io n op ti on M U X Co m par at or 1 ou tp ut TM 0 , T M1 8-bit Timer/Event Counter Structure 2. , 2. , 2)# , =J = Note:TheoutputiscontrolledbyPA5data. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |