UNIT – 5 8051 - Microcontroller.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

Parul Polytechnic Institute
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
I/O Unit.
Processor System Architecture
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
Microcontroller based system design
Micro controllers A self-contained system in which a processor, support, memory, and input/output (I/O) are all contained in a single package.
INTRODUCTION TO MICROCONTROLLER. What is a Microcontroller A microcontroller is a complete microprocessor system, consisting of microprocessor, limited.
CHAPTER 5 I/O PRINCIPLE Understand the principles of System Bus
Introduction to Computing: Lecture 4
MICROPROCESSOR INPUT/OUTPUT
Basic Architecture Lecture 15. In general, if the number of bits is n, then the number of different combinations of 0s and 1s that can be made is 2 n.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
Introduction to Microprocessors
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Intel 8051 Another family of microcontroller is the Intel 8051 family. The basic 8051 microcontroller has four parallel input/output ports, port 0, 1,
MICROOCESSORS AND MICROCONTROLLER:
بسم الله الرحمن الرحيم MEMORY AND I/O.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
8051 Microcontroller Tutorial and Architecture with Applications.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Sequence of control signal combinations.
Introduction to Microcontroller Technology
Computer Organization
Unit Microprocessor.
8085 Microprocessor Architecture
Seminar On 8085 microprocessor
MICROPROCESSOR AND INTERFACING
Basic Computer Organization and Design
COURSE OUTCOMES OF Microprocessor and programming
Microprocessor and Microcontroller Fundamentals
8051 Pin - out PORT 0 PORT 1 PORT 2 PORT 3.
Everybody.
The 8085 Microprocessor Architecture
Microcontrollers & GPIO
Introduction to microprocessor (Continued) Unit 1 Lecture 2
The 8085 Microprocessor Architecture
Introduction of microprocessor
BVM Engineering College Electrical Engineering Department : Microprocessor and Microcontroller Interfacing Interrupts of 8051 Prepared by:
Dr. Michael Nasief Lecture 2
contains 8086 processor and several additional functional chips: clock generator 2 independent DMA channels PIC 3 programmable 16-bit timers.
Introduction to Microprocessors
8085 microprocessor.
8085 Microprocessor Architecture
General Architecture of Digital Computer
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Introduction of microprpcessor
Introduction to Microprocessors and Microcontrollers
Interfacing Memory Interfacing.
Number Representations and Basic Processor Architecture
Morgan Kaufmann Publishers Computer Organization and Assembly Language
8085 Microprocessor Architecture
Introducing the PIC Mid-Range Family and the 16F84A
Unit – Microcontroller Tutorial Class - 2 ANITS College
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
The 8085 Microprocessor Architecture
8051 Micro Controller.
Wireless Embedded Systems
8085 Microprocessor Architecture
COMP3221: Microprocessors and Embedded Systems
Introduction of microprpcessor
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
ADSP 21065L.
Register sets The register section/array consists completely of circuitry used to temporarily store data or program codes until they are sent to the.
Microprocessor I 7/18/2019.
Presentation transcript:

UNIT – 5 8051 - Microcontroller

8051 Microcontroller Introduction To make a complete microcomputer system, only microprocessor is not sufficient. It is necessary to add other peripherals such as Read only Memory (ROM), read/write memory (RAM), decoders, drivers, number of input/output devices, such as interrupt controller, programmable timers, programmable I/O devices, DMA controllers may be added to improve the capability, performance and flexibility of a microcomputer system. The microcontroller incorporates all the features that are found in micro processor. However, it has also added features to make a complete microcomputer system on its own. The microcontroller has built-in ROM, RAM, Parallel I/O, Serial I/O, Counters and a clock circuit.

Difference B/W Microprocessor and Microcontroller Sr. No Microprocessor Microcontroller 1. It contains ALU, Control Unit, Different registers and interrupt circuit. It contains microprocessor, memory, I/O Interfacing and peripheral devices such as A/D converter, Serial I/O, timer etc., 2. It has many instructions to move data between memory and CPU. It has one or two instructions to move data between memory and CPU. 3. It has one or two bit handling instructions It has many bit handling instructions 4. Access times for memory and I/O Devices are more. Less access time for built-in memory and I/O Devices. 5. It needs more hardware It needs less hardware 6. It is more flexible in design point of view Less flexible in design point of view 7. It has single memory map for data and code. It has separate memory map for data and code. 8. Less number of pins are multi functioned. More number of pins are multi functioned.

8051 Microcontroller Architecture

Central Processor Unit (CPU) As we know that the CPU is the brain of any processing device of the microcontroller. It monitors and controls all operations that are performed on the Microcontroller units. The  User has no control over the work of the CPU directly . It reads program written in ROM memory and executes them and do the expected task of that application.

Interrupt Interrupt is a subroutine call that interrupts of the microcontrollers main operations or work and causes it to execute any other  program, which is more important at the time of operation. The feature of Interrupt is very useful as it helps in case of emergency operations. An Interrupts gives us a mechanism to put on hold the ongoing operations, execute a subroutine and then again resumes to another type of operations.

The Microcontroller 8051 can be configured in such a way that it temporarily terminates or pause the main program at the occurrence of interrupts. When a subroutine is completed, Then the execution of main program starts. Generally five interrupt sources are there in 8051 Microcontroller.

There are 5 vectored interrupts are shown in below 1) INTO 2) TFO 3) INT1 4) TF1 5) R1/T1 Out of these,  (INT0) ̅ and (INT1) ̅ are external interrupts that could be negative edge triggered or low level triggered. When All these interrupts are activated, set the corresponding flags  except for serial interrupt, The interrupt flags are cleared when the processor branches to the interrupt service routine (ISR). The external interrupt flags are cleared when the processor branches to the interrupt service routine,  provides the interrupt is a negative edge triggered whereas the timers and serial port interrupts  two of them are  external interrupts, two of them are timer interrupts and one serial port interrupt terminal in general.

Memory Microcontroller requires a program which is a collection of instructions. This program tells microcontroller to do specific tasks. These programs require a memory on which these can be saved and read by Microcontroller to perform specific operations of a particular task. The memory which is used to store the program of the microcontroller is known as code memory or Program memory of applications. It is known as ROM memory of  microcontroller also requires a memory to store data or operands temporarily of the micro controller. The data memory of the 8051 is used to store data temporarily for operation is known RAM memory. 8051 microcontroller  has 4K of code memory or program memory that  has 4KB ROM and also 128 bytes of data memory of RAM.

BUS Basically Bus is a collection of wires which work as a communication channel or medium for transfer of Data. These buses consists of 8, 16 or more wires of the microcontroller. Thus, these can carry 8 bits,16 bits simultaneously. Two types of buses that are shown in below Address Bus Data Bus Address Bus: Microcontroller 8051 has a 16 bit address bus for transferring the data. It is used to address memory locations and to transfer the address from CPU to Memory of the microcontroller. It has  four addressing modes that are Immediate addressing modes. Bank address (or) Register addressing mode. Direct Addressing mode. Register indirect addressing mode. Data Bus: Microcontroller 8051 has 8 bits of  the data bus, which is used to carry data of particular applications.

Oscillator Generally, we know that  the microcontroller is a device, therefore it requires clock pulses for its operation of microcontroller applications. For this purpose, microcontroller 8051 has an on-chip oscillator which works as a clock source for Central Processing Unit of the microcontroller. The output pulses of oscillator are stable. Therefore, it enables synchronized work of all parts of the 8051 Microcontroller. Input / Output Port Normally microcontroller is used in embedded systems to control the operation of machines in the microcontroller. Therefore, to connect  it to other machines, devices or peripherals we require I/O interfacing ports in  the microcontroller interface. For this purpose microcontroller 8051 has 4 input, output ports to connect it to the other peripherals Timers/Counters 8051 microcontroller has two 16 bit timers and counters. These counters are again divided into a 8 bit register. The timers are used for measurement of intervals to determine the pulse width of pulses.

Applications of 8051 Microcontroller Daily Life Applications Light sensing and controlling devices Temperature sensing and controlling  devices Fire detections and safety devices Automobile applications Defense applications Industrial Applications Industrial instrumentation devices Process control devices Measurement Applications Voltmeter applications Measuring and revolving objects Current meter objects Hand held metering system