Rev. 1.50 182 August 28, 2017 Rev. 1.50 183 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
A/D Converter Interrupt
TheA/DConverterInterruptiscontrolledbytheterminationofanA/Dconversionprocess.AnA/D
ConverterInterruptrequestwilltakeplacewhentheA/DConverterInterruptrequestag,ADF,is
set,whichoccurswhentheA/Dconversionprocessnishes.Toallowtheprogramtobranchtoits
respectiveinterruptvectoraddress,theglobalinterruptenablebit,EMI,andA/DInterruptenablebit,
ADE,mustrstbeset.Whentheinterruptisenabled,thestackisnotfullandtheA/Dconversion
processhasended,asubroutinecalltotheA/DConverterInterruptvector,willtakeplace.Whenthe
interruptisserviced,theA/DConverterInterruptag,ADF,willbeautomaticallycleared.TheEMI
bitwillalsobeautomaticallyclearedtodisableotherinterrupts.
Time Base Interrupt
ThefunctionoftheTimeBaseInterruptsistoprovideregulartimesignalintheformofaninternal
interrupt.Theyarecontrolledbytheoverowsignalsfromtheirrespectivetimerfunctions.When
thesehappenstheirrespectiveinterruptrequestflags,TB0ForTB1Fwillbeset.Toallowthe
programtobranchtotheirrespectiveinterruptvectoraddresses,theglobalinterruptenablebit,EMI
andTimeBaseenablebits,TB0EorTB1E,mustrstbeset.Whentheinterruptisenabled,thestack
isnotfullandtheTimeBaseoverows,asubroutinecalltotheirrespectivevectorlocationswill
takeplace.Whentheinterruptisserviced,therespectiveinterruptrequestag,TB0ForTB1F,will
beautomaticallyresetandtheEMIbitwillbeclearedtodisableotherinterrupts.Thepurposeof
theTimeBaseInterruptistoprovideaninterruptsignalatxedtimeperiods.Theirclocksources
originatefromtheinternalclocksourcef
TB
.Thisf
TB
inputclockpassesthroughadivider,the
divisionratioofwhichisselectedbyprogrammingtheappropriatebitsintheTBCregistertoobtain
longerinterruptperiodswhosevalueranges.Theclocksourcethatgeneratesf
TB
,whichinturn
controlstheTimeBaseinterruptperiod,canoriginatefromseveraldifferentsources,asshowninthe
SystemOperatingModesection.
M
U
X
f
SYS
/4
f
TBC
Prescaler
TBCK
f
TB
f
TB
/2
8
~ f
TB
/2
15
M
U
X
TB11~TB10
Time Base 0 Interrupt
Time Base 1 Interrupt
TB02~TB00
Prescaler
M
U
X
f
TB
/2
12
~ f
TB
/2
15
Time Base Interrupts