Chapter 6 - Experiment Lab Exercise; Experiment 1 - Blinking Leds - ablelogic AVR-DK20A User Manual

Avr development board
Table of Contents

Advertisement

Chapter 6 – Experiment Lab Exercise
6.1 Experiment 1 – Blinking LEDs
Port Setting : Set Port B as Output
Jumper Setting: LK9-LK16 (B0-L0, B1-L1, B2-L2, B3-L3, B4-L4, B5-L5, B6-L6, B7-L7)
Objective:
Create a project, output a value 55H (hex) on the 8-bit LEDs.
Flow Chart:
Port Setting information:
DDRB = 0xFF;
Expected Result
You will see the "01010101" display on the 8-Bit LEDs display.
Tutorial 1 :
(a) Create a blinking LEDs project, set all 8-bit LEDs on for 200 milisec and off for 200 milisec.
(b) Create a project, drive the 8-bit LEDs in running light format.
AVR Development Board – AVR-DK20A User Manual
Start
Initialize I/O
Infinity Loop
Output 55H to
LEDs
// Set direction to be output
22

Advertisement

Table of Contents
loading

Table of Contents