You are on page 1of 5

Faculty Member: Dr.

Arbab Latif Dated: 21st May 2021

Semester: Spring 2021 (4th) Section: A

School of Electrical Engineering and Computer Science

EE-222 Microprocessor Systems


Lab9: Introduction To Microcontroller 8051, Keil Software And Proteus Software

Name Reg. No. Viva / Quiz / Analysis of Modern Ethics Individual Total
Lab data in Lab Tool and and Team
Performance Report usage Safety Work

5 Marks 5 Marks 5 Marks 5 Marks 5 Marks 25 Marks


Noor Tahir 286527

Daniya Imran 321940

Fatima Iqbal 290358

EXPERIMENT 09
INTRODUCTION TO MICROCONTROLLER 8051, KEIL
SOFTWARE AND PROTEUS SOFTWARE

OBJECTIVE:
1. Awareness to the ATMEL 8051.
2. Study the ATMEL 8051 data sheet.
3. Familiarization with Keil software
4. Familiarization with proteus software
5. Simulation of microcontroller circuits using proteus

DISCUSSION:

Basic Circuit for 8051:


8051 PIN OUT

• Power - Vcc, Vss


• Reset - RST
• Crystal - XTAL[1,2]
• External device interfacing
EA, ALE, PSEN, WR, RD

• I/O Port
P0[7;0], P1[7:0], P2[7:0], P3
P3 is shared with control lines o
Serial I/O RxD, TxD, o external
interrupts INT0, INT1
o Counter control T0, T1

P0 and P2 are multiplexed with Address and Data bus


KEIL SOFTWARE:

Keil development tools for the 8051 Microcontroller Architecture support every level of
software developer from the professional applications engineer to the student just learning about
embedded software development.

The industry-standard Keil C Compilers, Macro Assemblers, Debuggers, Real-time Kernels,


Single-board Computers, and Emulators support all 8051 derivatives and help you get your
projects completed on schedule.

STEPS:

1. Open the Keil software.


2. Click the project on the main tool bar.
3. Select new project and name it.
4. Then select Atmel 89C51 microcontroller.
5. Create a new file from the file menu.
6. Save the file with extension with .asm or .c.
7. Click the target in the main window, and then right click the source to select the saved file.
8. Now open a new file and type the program, save it with a new name.
9. Right click the target and go to its properties.
10. Change the microcontroller frequency to 11.0592 MHz.
11. On the output menu, check the “Create HEX file” box.

Proteus Circuit:

KEIL COMMANDS FOR BLINKING:


Conclusion:

• After performing this lab, we were able to better understand the working of the
microprocessor 8051, a TTL logic device.
• It is comprised of two logic levels; high and low respectively that are dependent on
the respective voltages.
• With the help of the LEDs, we were able to better comprehend the functioning of this
microprocessor with the help of the given circuit on proteus

You might also like