Microprocessor Lab Manual

You might also like

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

MICROPROCESSOR

EXPERIMENT 4:

- INPUT SWTICHES AND


OUTPUT LEDS-

(WARNING NOTICE: PLEASE MAKE SURE YOU HAVE READ THE


ATMEGA328 MICROPROCESSOR TRAINERS MANUAL AND THE
ARDUINO UNO MANUAL BEFORE STARTING THE EXPERIMENT. THE
MANUAL IS AVAILABLE IN THE ITALEEM)
EXPERIMENT # 4 : INPUT SWITCHES AND OUTPUT LEDS

1.1 Objective(s).
I. To introduce students to the world of microprocessor and its
interfacing
II. To introduce students on how to program an assembler and
transfer the program into the microprocessor and memory.
III. To demonstrate basic i/o operation and applications, which is
to read input data from 8-bit DIP Switch (SW1) and Output
the results to 8 LEDs (L1 – L8)

1.2 Tools and components.


I. Personal Computer
II. Breadboard
III. LEDs
IV. Resistors
V. Switches
VI. Arduino UNO / ATMEGA328

1.3 Draw the circuit diagram.


I. ATMEGA328 to LED.
II. LED light to PORT OUT.
III. Switches to PORT IN.

1.4 Basic programming codes are given.


I. 1 switch to 1 LED.
II. Delay function.

1.5 Pre-lab assignments.


I. Study ATMEGA328.
II. State the specifications and ports assignments for ATMega.

1.6 Lab task for observation and discussion.


I. Single input and single output (given).
II. Multiple input and multiple output with delay.
III. Running light.
IV. Traffic lights.
MICROPROCESSOR EXPERIMENT 5:

-7 SEGMENT DISPLAY-

(WARNING NOTICE: PLEASE MAKE SURE YOU HAVE READ THE ATMEGA328
MICROPROCESSOR TRAINERS MANUAL AND THE ARDUINO UNO MANUAL BEFORE STARTING
EXPERIMENT. THE MANUAL IS AVAILABLE IN ITALEEM)
EXPERIMENT # 5: 7 SEGMENTS DISPLAY
1.1 Objective(s).
I. To demonstrate microprocessor controller 7-segment display interface.
II. To demonstrate the flexibility and HMI interactive feature within the microprocessors.

1.2 Tools and components.


I. Personal computer (Atmel Studio)
II. two 7 segment display
III. Breadboard, resistors and jumper wires
IV. ATMega (Arduino board)
V. HD74LS48P

1.3 Draw the circuit diagram.


I. ATMega to 7 segment display with resistors
II. ATMega to 7 segment display with resistors and HD74LS48P

1.4 Basic programming codes are given.


I. Delay function

1.5 Pre-lab assignments.


I. Study ATMega, HD74LS48P and 7 segment display
II. State the specifications and ports assignments for ATMega, HD74LS48P and 7 segment
display

1.6 Lab task for observation and discussion.


I. Display no 4 on the 7 segment display without HD74LS48P
II. Display no 4 on the 7 segment display with HD74LS48P
III. Counting up from 00-99
MICROPROCESSOR
EXPERIMENT 6:

-MOTOR CONTROL-
EXPERIMENT # 6 : MOTOR CONTROL

1.2 Objective(s).
IV. To demonstrate microprocessor interfacing and control of a
DC motor.

1.2 Tools and components.


VII. DC Motor.
VIII. L293D.
IX. Breadboard and jumper wires.
X. ATMega / C Arduino

1.3 Draw the circuit diagram.


IV. DC Motor to L293D.
V. L293D to Arduino board.

1.4 Basic programming codes are given.


III. Delay Function

1.5 Pre-lab assignments.


III. Study L293D datasheet.
IV. State the specifications and ports assignments for ATMega.

1.6 Lab task for observation and discussion.


V. Drive the DC motor in clockwise and counter clockwise
direction
VI. Control Speed of the motor using PWM

You might also like