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

DELAY():

FLOW CHART FOR BLINKING LED :

START

Initialize IO direction register


IODIR0 and IODIR1

WHILE
TRUE

Set IO port register


IOSEL0

Call delay()

Clear IO port register


IOCLR0

Call delay()
DELAY():

delay()

Initialize i and j
variables

N
Loop
conditio
n

Increment variable

Loop
conditio
n

return
Y Y

Increment variable

You might also like