| 전자부품 데이터시트 검색엔진 |
|
HT45F12 데이터시트(PDF) 75 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F12 데이터시트(HTML) 75 Page - Holtek Semiconductor Inc |
|
75 / 104 page ![]() Rev. 0.00 74 �e�te��e� ��� �01� Rev. 0.00 75 �e�te��e� ��� �01� HT45F12 8-Bit Flash MCU with Op Amps & Comparators HT45F12 8-Bit Flash MCU with Op Amps & Comparators Comparatorsswitchcontrol: Thefollowingtableillustratestherelationshipbetweencomparatorscontrolregistersettingsandthe switches: CMP1,CMP2 Control Bits Switch Description Results Connections 1 (Fo�ced to 1) × 1 (Fo�ced to 1) 1 1 ON CNP × ON C1N ON OFF ON OFF OFF In�ut co��on �ode = CNP 1 (Fo�ced to 1) × 1 (Fo�ced to 1) 1 0 ON CNP × ON C1N OFF ON ON OFF OFF In�ut co��on �ode = C1N 1 0 1 0 × ON × C1N ON ON OFF OFF OFF In�ut = CNP� C1N 1 0 0 0 × ON × VH ON ON OFF OFF OFF In�ut = CNP� VH1 0 0 1 0 × OFF × C1N ON ON OFF ON OFF In�ut = A1E� C1N 0 0 1 0 × OFF × C1N ON ON OFF OFF ON In�ut = A�E� C1N Interrupts Interruptsareanimportantpartofanymicrocontrollersystem.Whenanexternaleventoraninternal functionsuchasaTimer/EventCounterrequiresmicrocontrollerattention,theircorresponding interruptwillenforceatemporarysuspensionofthemainprogramallowingthemicrocontrollerto directattentiontotheirrespectiveneeds.Thedevicecontainsseveralexternalinterruptandinternal interruptsfunctionsTheexternalinterruptsaregeneratedbytheactionoftheexternalINT0~INT1 pins,whiletheinternalinterruptsaregeneratedbyvariousinternalfunctionssuchastheComparator, Timer/EventCounteretc. Interrupt Registers Overallinterruptcontrol,whichbasicallymeansinterruptenablingandrequestflagsetting,is controlledbytheINTC0,INTC1,MFIC0andMFIC1registers,whicharelocatedintheData Memory.Bycontrollingtheappropriateenablebitsintheseregisterseachindividualinterruptcan beenabledordisabled.Alsowhenaninterruptoccurs,thecorrespondingrequestflagwillbesetby themicrocontroller.Theglobalenableflagifclearedtozerowilldisableallinterrupts. Interrupt Operation ATimer/EventCounteroverflow,TimeBase0/1,theexternalinterruptlinebeingtriggered,acomparator output,anEEPROMWriteorReadcycleendswillallgenerateaninterruptrequestbysettingtheir correspondingrequestflag,iftheirappropriateinterruptenablebitisset.Whenthishappens,the ProgramCounter,whichstorestheaddressofthenextinstructiontobeexecuted,willbetransferred ontothestack.TheProgramCounterwillthenbeloadedwithanewaddresswhichwillbethevalue ofthecorrespondinginterruptvector.Themicrocontrollerwillthenfetchitsnextinstructionfromthis interruptvector.TheinstructionatthisvectorwillusuallybeaJMPstatementwhichwilljumptoanother sectionofprogramwhichisknownastheinterruptserviceroutine.Hereislocatedthecodetocontrol theappropriateinterrupt.TheinterruptserviceroutinemustbeterminatedwithaRETIstatement,which retrievestheoriginalProgramCounteraddressfromthestackandallowsthemicrocontrollertocontinue withnormalexecutionatthepointwheretheinterruptoccurred. Thevariousinterruptenablebits,togetherwiththeirassociatedrequestflags,areshowninthe accompanyingdiagramwiththeirorderofpriority. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |