AVR Development Board – AVR-DK20A User Manual
28
6.4 Experiment 4 – 2 DIGIT SEVEN SEGMENT
Jumper Setting
:LK9-LK14 (B0-
A
, B1-
B
, B2-
C
, B3-
D
, B4-
DIG1
, B5-
DIG2
)
Port Setting:
Set Port B as output
Objective:
Create a decimal counter project, and count from 0 to 9.
Flow Chart:
Expected Result
You will see a decimal counter start from 0 counts until 9 and set back to 0 run continuously.
Tutorial 3
– Create a project, set a counter count from 00 to 99 continuously.
Start
Initialize I/O
Infinity Loop
Initial Counter = 0
Output to 7-
Segment Display
Counter = 9?
Counter =
C 1
Counter = 0
Output to 7-
Segment Display
No
Yes