0% found this document useful (0 votes)
105 views

ESEx 1

The document provides details about an 8051 microcontroller lab assignment for student Prishita Ray with registration number 17BCE2405. It includes an explanation of the 8051 architecture with 4K ROM, 128 bytes RAM, and 2 timers. It also describes the 8051 pin diagram and pin functions, including ports for input/output, reset, serial communication, interrupts, crystal oscillator, and power/ground. Finally, it states that the 8051 is suitable for small embedded tasks due to its low cost, performance, and availability.

Uploaded by

Pray
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views

ESEx 1

The document provides details about an 8051 microcontroller lab assignment for student Prishita Ray with registration number 17BCE2405. It includes an explanation of the 8051 architecture with 4K ROM, 128 bytes RAM, and 2 timers. It also describes the 8051 pin diagram and pin functions, including ports for input/output, reset, serial communication, interrupts, crystal oscillator, and power/ground. Finally, it states that the 8051 is suitable for small embedded tasks due to its low cost, performance, and availability.

Uploaded by

Pray
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Name: Prishita Ray

Registration No.: 17BCE2405

Lab Assignment-1
1.Introduction to Embedded Systems:

1.1. Study on 8051 Architecture

i) Architecture

Explanation:
The 8051 microcontroller has 4K bytes of on-chip ROM, 128 bytes of RAM and 2 Timers for memory
storage and instruction scheduling and execution. It has 32 input/output pins that are distributed among
four ports, each of which is 8 bytes wide. It has one serial port for connecting to other microcontrollers
and 6 interrupt sources, thus it can handle a maximum of 6 interrupts at the same time. It is a model in
the MCS-51 Family which also includes other versions such as 8052 having 256 bytes of RAM, 2 timers
and 8 interrupt sources, and the 8031 that is the ROM-less variant of 8051.

ii) 8051 Pin Diagram

iii) 8051 Pin description

1. 1-8 Port 1 (P1.0-P1.7)- Bidirectional input/output port


2. 9 Reset (RST)- Logic 0: Normal Running Mode of 8051

Logic 1: 2 machine clock cycles to reset the chip

3. 10-17 Port 3 (P3.0-P3.7)- Bidirectional input port

Dual roles of individual pins:

 P3.0 (RXD) – receiving serial data

 P3.1 (TXD) – transmitting serial data


 P3.2 and P3.3 – processing external interrupts

 P3.4 and P3.5 – Alternative functions of T0 and T1

 P3.6 and P3.7 – read and write signals for external memory

4. 18-19 (XTL1-XTL2)- external crystal, ceramic resonator or oscillator module for clock source to
the chip
5. 20 (VSS)- Ground VSS=0V
6. 21-28 Port 2 (P2.0-P2.7)- Bidirectional input port

Dual role of individual pins – to store MSB address byte of 16b address to external memory

7. 29 – PSEN – control access to external code memory


8. 30 – ALE –
When working with external memory
Disabled to reduce EMI generated by the product
Also used as PROG – program pulse input during flash programming
9. 31 – EA
Connected to Vcc to execute code from internal memory (on chip flash)
Connected to ground to execute code from external memory
10. 32-39 – Port 0 – bi-directional input port
Does not have internal pull-up resistors
Dual role – gives LSB address byte of 16 address to external memory
11. 40 – Vcc – 5V pin

iv) 8051 purpose

The 8051 microcontroller has a price less than $1.00, therefore it is very cheap. It has a performance of
1 Machine Instructions per second and 256 bytes of on-chip RAM, which makes it suitable for execution
of small, dedicated tasks. Its low cost, huge range and easy availability and widespread use makes it a
great platform for developing as well as learning about embedded systems.

You might also like