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
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.
ThepurposeoftheTimeBaseInterruptistoprovideaninterruptsignalatxedtimeperiods.Their
clocksourcesoriginatefromtheinternalclocksourcef
TB
.Thisf
TB
inputclockpassesthrougha
divider,thedivisionratioofwhichisselectedbyprogrammingtheappropriatebitsintheTBC
registertoobtainlongerinterruptperiodswhosevalueranges.Theclocksourcethatgeneratesf
TB
,
whichinturncontrolstheTimeBaseinterruptperiod,canoriginatefromseveraldifferentsources,
asshownintheSystemOperatingModesection.