| Electronic Components Datasheet Search |
|
HT45FM2C Datasheet(PDF) 141 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45FM2C Datasheet(HTML) 141 Page - Holtek Semiconductor Inc |
|
141 / 171 page ![]() Rev. 1.10 140 �a� �0� �01� Rev. 1.10 141 �a� �0� �01� HT45FM2C Brushless DC Motor Flash Type 8-Bit MCU HT45FM2C Brushless DC Motor Flash Type 8-Bit MCU Preliminar� subroutinecalltooneoftheMulti-functioninterruptvectorswilltakeplace.Whentheinterruptis serviced,therelatedMulti-Functionrequestflag,willbeautomaticallyresetandtheEMIbitwillbe automaticallyclearedtodisableotherinterrupts. However,itmustbenotedthat,althoughtheMulti-functionInterruptflagswillbeautomatically resetwhentheinterruptisserviced,therequestflagsfromtheoriginalsourceoftheMulti-function interrupts,namelytheHallSensorinterrupts,A/Dinterrupts,PWMModuleinterrupts,CAPTM Interrupts,TMInterrupts,RMTInterrupts,EEPROMandLVDInterruptwillnotbeautomatically resetandmustbemanuallyresetbytheapplicationprogram. A/D Converter Interrupt TheA/DConverterhastwointerrupts.AllofthemarecontainedinMulti-functioninterrupt.The oneiscontrolledbytheterminationofanA/Dconversionprocess.AnA/DConverterinterrupt requestwilltakeplacewhentheA/DConverterInterruptrequestflag,ALIMF,isset,whichoccurs whentheA/Dconversionprocessfinishes.TheotheriscontrolledbytheADCHVE/ADCLVEbitin theADCR1registerandthevalueintheADLVDH/ADLVDLandADHVDH/ADHVDLboundary controlregisters.AnA/DConverterInterruptrequestwilltakeplaceafterEOCcomparing.Toallow theprogramtobranchtoitsrespectiveinterruptvectoraddress,theglobalinterruptenablebit,EMI, andA/DInterruptenablebit,AEOCEorALIME,mustfirstbeset.Whentheinterruptisenabled, thestackisnotfullandtheA/DconversionprocesshasendedorafterEOCcomparingasubroutine calltotheA/DConverterInterruptvector,willtakeplace.Whentheinterruptisserviced,theA/D ConverterInterruptflag,AEOCForALIMF,willbeautomaticallycleared.TheEMIbitwillalsobe automaticallyclearedtodisableotherinterrupts. Fault Interrupt FaultpinisMotorControldisablepin,itsupportslowactiveleveltriggerinterrupt.Whenthis happens,itsinterruptrequestflag,FLTFwillbeset.Toallowtheprogramtobranchtoitsinterrupt vectoraddress,theglobalinterruptenablebit,EMIandenablebit,FLTE,mustfirstbeset.When theinterruptisenabled,thestackisnotfullandalowactivelevelappearsonthepin,asubroutine calltothisvectorlocationwilltakeplace.Whentheinterruptisserviced,theinterruptrequestflag, FLTF,willbeautomaticallyresetandtheEMIbitwillbeclearedtodisableotherinterrupts. Pause Interrupt PausepinisMotorControlenablepin,itsupportrising/falling/bothtriggerinterrupt.Whenthis happens,itsinterruptrequestflag,PAUFwillbeset.Toallowtheprogramtobranchtoitsinterrupt vectoraddress,theglobalinterruptenablebit,EMIandthecorrespondingenablebit,PAUE,must firstbeset.Whentheinterruptisenabled,thestackisnotfullandarising/falling/bothedgetrigger appearsonthepin,asubroutinecalltothisvectorlocationwilltakeplace.Whentheinterruptis serviced,theinterruptrequestflag,PAUF,willbeautomaticallyresetandtheEMIbitwillbecleared todisableotherinterrupts. PWM Module Interrupts ThePWMModulehastwointerrups.ThetwoofthemarecontainedinMulti-functioninterrupt, whichisknownasPWMDandPWMP.TheyaretheDutyorthePeriodmachingofthePWM Module.AnPWMinterruptrequestwilltakeplacewhenthePWMinterruptrequestflag,PWMDF orPWMPF,isset,whichoccurswhenthePWMDutyorPWMPeriodmatches.Whentheinterrupt isenabled,thestackisnotfullandPWMDutyorPWMPeriodmaches,asubroutinecalltothis vectorlocationwilltakeplace.Whentheinterruptisserviced,theEMIbitwillbeautomatically clearedtodisableotherinterruptsandtherelatedMulti-Functionrequestflagwillbeautomatically |
|
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 |