EasyManua.ls Logo

Holtek BS82B12A-3 - LVD Inte; To�Ch Ke� Inte; I 2 C Inte; UART Inte

Holtek BS82B12A-3
168 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Rev. 1.20 140 January 23, 2015 Rev. 1.20 141 January 23, 2015
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
LVD Interrupt
AnLVDInterruptrequestwilltakeplacewhentheLVDInterruptrequestag,LVDF,isset,which
occurswhentheLowVoltageDetectorfunctiondetectsalowpowersupplyvoltage.Toallowthe
programtobranchtoitsrespectiveinterruptvectoraddress,theglobalinterruptenablebit,EMI,and
LowVoltageInterruptenablebit,LVDE,mustrstbeset.Whentheinterruptisenabled,thestackis
notfullandalowvoltageconditionoccurs,asubroutinecalltotheLV DInterruptvector,willtake
place.WhentheLowVoltageInterruptisserviced,theLVDFagwillbeautomaticallyclearedand
theEMIbitwillbeautomaticallyclearedtodisableotherinterrupts.
Touch Key Interrupt
ForaTouchKeyinterrupttooccur,theglobalinterruptenablebit,EMI,andtheTouchKeyinterrupt
enableTKMEmustberstset.AnactualTouchKeyinterruptwilltakeplacewhentheTouchKey
requestag.TKMF,isset,asituationthatwilloccurwhenthetimeslotcounteroverows.When
theinterruptisenabled,thestackisnotfullandtheTouchKeytimeslotcounteroverowoccurs,a
subroutinecalltotherelevanttimerinterruptvector,willtakeplace.Whentheinterruptisserviced,
theTouchKeyinterruptrequestag,TKMF,willbeautomaticallyresetandtheEMIbitwillbe
automaticallyclearedtodisableotherinterrupts.
I
2
C Interrupt
AnI
2
CInterruptrequestwilltakeplacewhentheI
2
CInterruptrequestag,IICF,isset,whichoccurs
whenanaddressmatchoccurs,oranI
2
Ccommunicationtime-outoccurs,orabyteofdatahas
beenreceivedortransmittedbytheI
2
Cinterface.Toallowtheprogramtobranchtoitsrespective
interruptvectoraddress,theglobalinterruptenablebit,EMI,andtheI
2
CInterfaceInterrupt
enablebit,IICE,mustrstbeset.Whentheinterruptisenabled,thestackisnotfullandanythese
conditionsarecreated,asubroutinecalltotherespectiveinterruptvector,willtakeplace.Whenthe
I
2
CInterfaceInterruptisserviced,theI
2
Cinterruptrequestag,IICF,willbeautomaticallycleared
andtheEMIbitwillbeautomaticallyclearedtodisableotherinterrupts.
UART Interrupt
SeveralindividualUARTconditionscangenerateaUARTinterrupt.Whentheseconditionsexist,
alowpulsewillbegeneratedtogettheattentionofthemicrocontroller.Theseconditionsarea
transmitterdataregisterempty,transmitteridle,receiverdataavailable,receiveroverrun,address
detectandanRXpinwake-up.Toallowtheprogramtobranchtotherespectiveinterruptvector
addresses,theglobalinterruptenablebit,EMI,andUARTinterruptenablebit,UARTE,mustrst
beset.Whentheinterruptisenabled,thestackisnotfullandanyoftheseconditionsarecreated,
asubroutinecalltotheUARTInterruptvectorwilltakeplace.Whentheinterruptisserviced,the
UARTInterruptag,UARTF,willbeautomaticallycleared.TheEMIbitwillalsobeautomatically
clearedtodisableotherinterrupts.However,theUSRregisteragswillbeclearedautomatically
whencertainactionsaretakenbytheUART,thedetailsofwhicharegivenintheUARTsection.

Table of Contents

Related product manuals