Professional Documents
Culture Documents
L 7 Avrcp: AB Rogramming
L 7 Avrcp: AB Rogramming
AVR C PROGRAMMING
OBJECTIVE:
REFERENCE:
Mazidi and Naimi, “The AVR Microcontroller and Embedded System,” Chapter 7
MATERIALS:
ACTIVITY 1
ACTIVITY 2
Connect a key to PC0. Check the key state. If the key is pressed, toggle PB5 every second.
Otherwise, turn it off.
ACTIVITY 3
Connect a Switch to a pin on one of the PORTs and an LED to another pin. Write and test a
program with the following components:
AVR
330