Introduction to 8051 Microcontroller
By Prof. Rajendra
Microcontrollers are used in a wide number of electronic systems such as: 1. Engine management systems in automobiles. 3. Keyboard of a PC. 5. Electronic measurement instruments (such as digital multimeters, frequency synthesisers, and oscilloscopes) 7. Printers. 8. Mobile phones. 9. Televisions, radios, CD players, tape recording equipment. 10. Hearing aids. 11. Security alarm systems, fire alarm systems, and building services systems.
Microcontroller
Microcontroller
Difference between µP and µC Sr. No
µP
µC
1
Several Instructions for moving Data from ext. memory to CPU.
One or two instructions for moving the data from ext memory to CPU. In µC large number of pins are malfunctioned.
2
In µP few pins are malfunctioned.
3
Program memory and data memory are same.
Uses different program and data memory.
4
Uses different ICs for memory and I/O
Inbuilt Memory and I/O.
5
No Inbuilt timer.
Inbuilt timer is there.
Features • • • • • • • • • •
It provides many functions (CPU, RAM, ROM, I/O, interrupt logic, timer, etc.) in a single package 8-bit data bus - It can access 8 bits of data in one operation (hence it is an 8-bit microprocessor) 16-bit address bus - It can access 216 memory locations - 64 kB each of RAM and ROM On-chip RAM - 128 bytes ("Data Memory") On-chip ROM - 4 kB ("Program Memory") Four byte bi-directional input/output port UART (serial port) Two 16-bit timers Two-level interrupt priority Power saving mode
8051 Architecture
PIN DESCRIPTION