EasyManua.ls Logo

Holtek BS82B12A-3 - 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 136 January 23, 2015 Rev. 1.20 137 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
INT Pin
Touch Key Module
INTF
TKMF
INTE
TKME
EMI 04H
EMI 24H
28H
Interrupt
Name
Request
Flags
Enable
Bits
Master
Enable
Vector
EMI auto disabled in ISR
Priority
High
Low
CTM0 A CTMA0F CTMA0E
xxE Enable Bits
xxF Request Flag, auto reset in ISR
Legend
EMI 08H
I
2
C IICF IICE
EMI 10H
EMI
14H
Time Base 1 TB1F TB1E
Time Base 0 TB0F TB0E EMI 0CH
EEPROM DEF DEE
EMI
18H
1CH
CTM0 P CTMP0F CTMP0E
EMI 20H
PTM0 P PTMP0F PTMP0E EMI
PTM0 A PTMA0F PTMA0E EMI
EMI 2CHUART UARTF UARTE
EMI 30HLVD LVDF LVDE
Interrupt Structure
External Interrupt
TheexternalinterruptiscontrolledbysignaltransitionsonthepinINT.Anexternalinterrupt
requestwilltakeplacewhentheexternalinterruptrequestflag,INTF,isset,whichwilloccur
whenatransition,whosetypeischosenbytheedgeselectbits,appearsontheexternalinterrupt
pin.Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,theglobalinterrupt
enablebit,EMI,andrespectiveexternalinterruptenablebit,INTE,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pinispin-shared
withI/Opin,itcanonlybeconguredasexternalinterruptpinifits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ag,
INTF,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pin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.

Table of Contents

Related product manuals