EXPERIMENT NO: 2 Name – Surname: ...................................................................................................................... ID : ............................................................... ZIRVE UNIVERSITY ELECTRICAL-ELECTRONICS DEPARTMENT EEE342 – MICROPROCESSORS LABORATORY OBJECTIVES To learn basic properties of EX8B2 microcontroller development board. To write a basic assembly program with using PIC16F84A. To learn using PIC16F84A ports as input and output. EXPERIMENTAL WORK Development Board : EX8B2 Microcontroller : PIC16F84A Ports to be used : PORTA(RA0-RA4) & PORTB(RB0-RB7) Experiment: Write an assembly program with using ports RA0 to RA4 as input and RB0 to RB7 as output. If you press the RA0 button, RB0 and RB1 LEDs must be ON , if you press the RA1 button, RB1 and RB2 LEDs must be ON and the sequence must continue like this till you press the RA4 button. All LEDs must be OFF when you release your finger from buttons or when you don’t press any of the buttons. Example: RB0 RA0 RA1 RA2 RA3 RA4 RA5 RE0 RE1 Press RA3 RB1 RB2 BUTTONS RB3 and RB4 LEDs must be ON when RA3 button is pressed. RB3 RB4 RB5 RB6 RB7 LEDS 1
© Copyright 2024