External Interrupt Flowchart

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

START

Declare a global
variable, say ‘i’ as an
integer data type

Define a function meant for some delay. Select


and set the Port-x lines as O/P and any EINTn
line of port-0 as I/P using the registers IODIRx

Assign an ISR address and enable the


external interrupt-n using the
registers VICVectAddrx and
VICIntEnable respectively

Set the priority of the EINTn as


desired using the register
VICVectCntlx

Select the interrupt sensitivity to be


edge or level as desired using the
register EXTMODE

Select the edge or level activeness


to be rising (high) or falling (low) as
desired using the register
EXTPOLAR

C1
C1

No
If EXTINT
is equal
to 0x08
Set the Port-1 O/P lines to logic ‘1’
Yes
using the register IOSET1

Set P0.31 line/lead using the register


IOSET0
Call the user defined function for
some delay
Call the user defined function

Clear the Port-1 O/P lines to logic ‘0’


using the register IOCLR1 Clear P0.31 line/lead using the
register IOCLR0

Call the user defined function again


Call the user defined function again
for some delay

You might also like