| Electronic Components Datasheet Search |
|
HT45F39 Datasheet(PDF) 84 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F39 Datasheet(HTML) 84 Page - Holtek Semiconductor Inc |
|
84 / 102 page ![]() Rev. 1.10 84 July 01, 2016 Rev. 1.10 85 July 01, 2016 HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU Auto-Envelope Process Comparator Interrupt TheAuto-EnvelopeProcesscomparatorinterruptiscontrolledbythecomparingresults.The comparingresultscanbedecidedbytheoptions.WhenthecomparingdataislessthantheSUM data,thecompareoutputis"1",andwhenthecomparingdataisgreaterthantheSUMdata,the compareoutputis"0".Thecomparingoutputresultcanbeusedtobethesourcetogeneratean interrupt,ENVCMPINT.WhentheCMPOUToutputstatuschanges,itsrespectiveinterruptrequest flag,ENVCMPFwillbeset.Toallowtheprogramtobranchtoitsrespectiveinterruptvector address,theglobalinterruptenablebitEMIandANPcomparatorinterruptenablebitENVCMPE mustfirstbeset. Whentheinterruptisenabled,thestackisnotfullandthecomparatoroutputstatuschanges,a subroutinecalltotheirrespectivevectorlocationswilltakeplace.Whentheinterruptisserviced, therespectiveinterruptrequestflagENVCMPFwillbeautomaticallyresetandtheEMIbitwillbe clearedtodisableotherinterrupts. TheENVEDGE1andENVEDGE0bitsinENVCMPregisterareusedtoselectthetypeofactive edgethatwilltriggertheAEPcomparatorinterrupt.Achoiceofeitherrisingorfallingorbothedge typescanbechosentotriggeraninterrupt. 10-level FIFO Interrupt Thedevicescontaina10-levelFIFOInterrupt.Whenthe10setsdataarereceivedortransmitted, therespectiveinterruptrequestflagFIFO10Fwillbeset.Toallowtheprogramtobranchtoits respectiveinterruptvectoraddress,theglobalinterruptenablebitEMIandthe10-levelFIFO interruptenablebitFIFO10Emustfirstbeset.Whentheinterruptisenabled,thestackisnotfull andthe10setsdatareceiveortransmitprocesshasended,asubroutinecalltothe10-levelFIFO Interruptvector,willtakeplace.Whentheinterruptisserviced,theInterruptflag,FIFO10F,willbe automaticallycleared.TheEMIbitwillalsobeautomaticallyclearedtodisableotherinterrupts. A/D Converter Interrupt TheA/DConverterInterruptiscontrolledbytheterminationofanA/Dconversionprocess.AnA/ DConverterInterruptrequestwilltakeplacewhentheA/DConverterInterruptrequestflag,ADF, isset,whichoccurswhentheA/Dconversionprocessfinishes.Toallowtheprogramtobranchtoits respectiveinterruptvectoraddress,theglobalinterruptenablebit,EMI,andA/DInterruptenablebit, ADE,mustfirstbeset.Whentheinterruptisenabled,thestackisnotfullandtheA/Dconversion processhasended,asubroutinecalltotheA/DConverterInterruptvector,willtakeplace.Whenthe interruptisserviced,theA/DConverterInterruptflag,ADF,willbeautomaticallycleared.TheEMI bitwillalsobeautomaticallyclearedtodisableotherinterrupts. TM Interrupt TheCompactTypeTMshavetwointerruptseach.ForeachoftheCompactTypeTMsthereare twointerruptrequestflags,TPnFandTAnF,andtwoenablebitsTPnEandTAnE.ATMinterrupt requestwilltakeplacewhenanyoftheTMrequestflagsisset,asituationwhichoccurswhenaTM comparatorPorAmatchsituationhappens. Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,theglobalinterruptenable bitEMIandrespectiveTMInterruptenablebitmustfirstbeset.Whentheinterruptisenabled, thestackisnotfullandaTMcomparatormatchsituationoccurs,asubroutinecalltotherelevant Interruptvectorlocationswilltakeplace.WhentheTMinterruptisserviced,theTMinterrupt requestflagswillbeautomaticallyclearedandtheEMIbitwillbeautomaticallyclearedtodisable otherinterrupts. |
|
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 |