Professional Documents
Culture Documents
Lab 3 - MNM 3 Lab Comp
Lab 3 - MNM 3 Lab Comp
Equipment Required
● RS-232 Cable
● Personal Computer
● Turn on the training system and burn the hex file generated by the complier to the
microcontroller using AVR Dude Prog.
Introduction
Each port pin consists of three register bits i.e. DDxn, PORT xn and PIN xn.
In this task we observe that all leds turned on for 3seconds and turned off for 1second we use
delay time for this purpose.
Connection:
Led array is connected to port like A j17 is connected to programming port and board is
connected to CPU and file is browse on the screen that appear.
In this program we use a counter to increment a led and time delay of 1ms and output result
displayed on PORT A , that showed next led glows after increment in previous led.
Connection: Led array is connected to port like A j17 is connected to programming port and
board is connected to CPU and file is browse on the screen that appear.
3) Write a program to turn on the LED’s connected to PORT A of the microcontroller in
sequence, resulting in a chasing LED effect. The data is displayed with about 1 second
delay between each output pattern.
In this task leds used delay of 1second to turn on the led which we want to turn on we give
address of that led .
Connection:
Led array is connected to port like A j17 is connected to programming port and board is
connected to CPU and file is browse on the screen that appear.