EasyManuals Logo

Holtek HT66F30 User Manual

Default Icon
294 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #220 background imageLoading...
Page #220 background image
Rev. 2.50 220 June 22, 2017 Rev. 2.50 221 June 22, 2017
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
External Interrupt
TheexternalinterruptsarecontrolledbysignaltransitionsonthepinsINT0~INT3.Anexternal
interruptrequestwilltakeplacewhentheexternalinterruptrequestags,INT0F~INT3F,areset,
whichwilloccurwhenatransition,whosetypeischosenbytheedgeselectbits,appearsonthe
externalinterruptpins.Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,the
globalinterruptenablebit,EMI,andrespectiveexternalinterruptenablebit,INT0E~INT3E,must
rstbeset.AdditionallythecorrectinterruptedgetypemustbeselectedusingtheINTEGregisterto
enabletheexternalinterruptfunctionandtochoosethetriggeredgetype.Astheexternalinterrupt
pinsarepin-sharedwithI/Opins,theycanonlybeconfiguredasexternalinterruptpinsiftheir
externalinterruptenablebitinthecorrespondinginterruptregisterhasbeenset.Thepinmustalso
besetupasaninputbysettingthecorrespondingbitintheportcontrolregister.Whentheinterrupt
isenabled,thestackisnotfullandthecorrecttransitiontypeappearsontheexternalinterruptpin,
asubroutinecalltotheexternalinterruptvector,willtakeplace.Whentheinterruptisserviced,the
externalinterruptrequestags,INT0F~INT3F,willbeautomaticallyresetandtheEMIbitwillbe
automaticallyclearedtodisableotherinterrupts.Notethatanypull-highresistorselectionsonthe
externalinterruptpinswillremainvalidevenifthepinisusedasanexternalinterruptinput.
TheINTEGregisterisusedtoselectthetypeofactiveedgethatwilltriggertheexternalinterrupt.
Achoiceofeitherrisingorfallingorbothedgetypescanbechosentotriggeranexternalinterrupt.
NotethattheINTEGregistercanalsobeusedtodisabletheexternalinterruptfunction.
Comparator Interrupt
Thecomparatorinterruptiscontrolledbythetwointernalcomparators.Acomparatorinterrupt
requestwilltakeplacewhenthecomparatorinterruptrequestflags,CP0ForCP1F,areset,a
situationthatwilloccurwhenthecomparatoroutputbitchangesstate.Toallowtheprogramto
branchtoitsrespectiveinterruptvectoraddress,theglobalinterruptenablebit,EMI,andcomparator
interruptenablebits,CP0EandCP1E,mustrstbeset.Whentheinterruptisenabled,thestackis
notfullandthecomparatorinputsgenerateacomparatoroutputtransition,asubroutinecalltothe
comparatorinterruptvector,willtakeplace.Whentheinterruptisserviced,theexternalinterrupt
requestags,willbeautomaticallyresetandtheEMIbitwillbeautomaticallyclearedtodisable
otherinterrupts.
Multi-function Interrupt
WithinthesedevicesthereareuptosixMulti-functioninterrupts.Unliketheotherindependent
interrupts,theseinterruptshavenoindependentsource,butratherareformedfromotherexisting
interruptsources,namelytheTMInterrupts,SIMInterrupt,ExternalPeripheralInterrupt,LVD
interruptandEEPROMInterrupt.
AMulti-functioninterruptrequestwilltakeplacewhenanyoftheMulti-functioninterruptrequest
ags,MF0F~MF5Fareset.TheMulti-functioninterruptagswillbesetwhenanyoftheirincluded
functionsgenerateaninterruptrequestflag.Toallowtheprogramtobranchtoitsrespective
interruptvectoraddress,whentheMulti-functioninterruptisenabledandthestackisnotfull,and
eitheroneoftheinterruptscontainedwithineachofMulti-functioninterruptoccurs,asubroutine
calltooneoftheMulti-functioninterruptvectorswilltakeplace.Whentheinterruptisserviced,the
relatedMulti-Functionrequestag,willbeautomaticallyresetandtheEMIbitwillbeautomatically
clearedtodisableotherinterrupts.
However,itmustbenotedthat,althoughtheMulti-functionInterruptagswillbeautomatically
resetwhentheinterruptisserviced,therequestagsfromtheoriginalsourceoftheMulti-function
interrupts,namelytheTMInterrupts,SIMInterrupt,ExternalPeripheralInterrupt,LVDinterrupt
andEEPROMInterruptwillnotbeautomaticallyresetandmustbemanuallyresetbytheapplication
program.

Table of Contents

Other manuals for Holtek HT66F30

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Holtek HT66F30 and is the answer not in the manual?

Holtek HT66F30 Specifications

General IconGeneral
BrandHoltek
ModelHT66F30
CategoryComputer Hardware
LanguageEnglish

Related product manuals