ECE/CS-352: Embedded Microcontroller Systems Embedded Microcontroller Systems.

Slides:



Advertisements
Similar presentations
3rd Module Microcontroller.
Advertisements

Autumn 2012C.-S. Shieh, EC, KUAS, Taiwan1 The 8051 Family Microcontroller Chin-Shiuh Shieh Department of Electronic Engineering.
Chapter 2 HARDWARE SUMMARY
8051 Core Specification.
ECP2036 Microprocessor and Interfacing
Course Overview and The 8051 Architecture
Processor System Architecture
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
EEE237 Introduction to Microprocessors
EMBEDDED SYSTEM AND ITS APPLICATIONS
 CPU: Central Processing Unit  I/O: Input /Output  Bus: Address bus & Data bus  Memory: RAM & ROM  Timer  Interrupt  Serial Port  Parallel Port.
LS R First Design Key board. A B Second Design A B C D CD B Key board Third Design.
Micro-controller or embedded controller
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 29: Microcontroller intro.
Architecture of the 8051 INTERNAL DATA BUS Oscillator & Timing Programmable I/O (32 Pins) 80C51 CPU 64K byte Expansion Control Serial I/O 4K Program Memory.
The 8051 Microcontroller Architecture
Microcontroller 8051.
The 8051 Microcontroller architecture
The domestic refrigerator-An example A car door mechanism.
Micro controllers A self-contained system in which a processor, support, memory, and input/output (I/O) are all contained in a single package.
Microcontroller 8051.
Introduction to Microcontrollers Dr. Konstantinos Tatas
Hardware Summary ECE473/573 Microprocessor System Design, Dr. Shiue.
Microcontroller Intel 8051 [Architecture]. The Microcontroller Microcontrollers can be considered as self-contained systems with a processor, memory and.
CIT 673 Created by Suriyong1 MCS51 ASSEMBLY Language Resources
PS - 87C51Mx2 - SLS-1 Philips Semiconductors 87C51Mx2 Microcontroller.
CoE3DJ4 Digital Systems Design Hardware summary. Microprocessors vs. Microcontrollers Microprocessors are single-chip CPU used in microcomputers Microcontrollers.
An Introduction to Microcontroller (Hardware Specification) Lec note 4
1 The /27/ Today over fifty companies produce variations of the Several of these companies have over fifty versions of the 8051.
MICROCONTROLLER SYSTEMS Part 1. Figure 1.1Elements of a digital controller CPU Central Processing Unit Input Peripherals Output Peripherals ROM Read Only.
8051 Micro controller. Architecture of 8051 Features of 8051.
Microprocessors For a microprocessor to give a working microcomputer system, which can be used for control tasks, additional chips are necessary, e.g.
Microcontrollers Class : 4th Semister E&C and EEE Subject Code: 06ES42
Intel 8051 Another family of microcontroller is the Intel 8051 family. The basic 8051 microcontroller has four parallel input/output ports, port 0, 1,
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
Presented by Sadhish Prabhu
EE/CS-352: Embedded Microcontroller Systems Part V The 8051 Assembly Language Interrupts.
Architecture of the 8051 Microcontroller
Chapter Microcontroller
8051 Micro Controller. Microcontroller versus general-purpose microprocessor.
Kustanto,S.T.,M.EngECE/CS-352: Embedded Microcontroller Systems Embedded Systems By: Kustanto,S.T.,M.Eng.
Prepared by:- Man Mohan Krishna ECE  Advance technology  Establishment 1999  Location chandigarh  Working area  Products  Key area of training.
HJD Institute of Technical Education & Research- Kera(Kutch) The 8051 Microcontroller architecture PREPARED BY: RAYMA SOHIL( )
80C51 Block Diagram 1. 80C51 Memory Memory The data width is 8 bits Registers are 8 bits Addresses are 8 bits – i.e. addresses for only 256.
Microcontroller & Interfacing
DEPARTMENT OF ELECTRONICS ENGINEERING V-SEMESTER MICROPROCESSOR & MICROCONTROLLER 1 CHAPTER NO microcontroller & programming.
Embedded Microcontroller Systems
Seminar On 8085 microprocessor
Microcontroller.
Embedded Microcontroller Systems
Introduction to Micro Controllers & Embedded System Design Microprocessor/Microcontroller Department of Electrical & Computer Engineering Missouri University.
8051 Microcontroller Features and its Applications
Course Overview and The 8051 Architecture
UNIT 5 TIMRERS/COUNTERS
Microcontroller Intel 8051
Introduction to Microprocessors and Microcontrollers
Introduction to Micro Controllers & Embedded System Design Microprocessor/Microcontroller Department of Electrical & Computer Engineering Missouri University.
(Electrical Engg 6th Semester)
Memory organization On- chip memory Off-chip memory
The 8051 Microcontroller (8 bit )
מבנה בסיסי של מיקרו בקר מבוא למיקרו מבנה בסיסי דיאגרמת מלבנים
Microcontroller 8051 Made By: Arun Branch. 4th Sem. I&C Engg.
8051 Microcontroller.
First Design Key board R L S.
Important 8051 Features On chip oscillator 4K bytes ROM 128 bytes RAM
UNIT-VIII 8051 Microcontroller Architecture Register set of 8051
8051 Micro Controller.
The 8051 Microcontroller (8 bit )
Compiled by Dr. N.Shanmugasundaram, HOD, ECE Dept, SECE.
MCU – Microcontroller Unit – 2
Presentation transcript:

ECE/CS-352: Embedded Microcontroller Systems Embedded Microcontroller Systems

ECE/CS-352: Embedded Microcontroller Systems Overview Basic components of digital computers Microcontrollers and Embedded Systems Applications and Common Microcontrollers The MCS-51 Family of Microcontrollers On-chip memory, registers On-chip facilities overview

ECE/CS-352: Embedded Microcontroller Systems Basic Components of Digital Computer??

ECE/CS-352: Embedded Microcontroller Systems Microcontrollers??

ECE/CS-352: Embedded Microcontroller Systems Embedded Systems

ECE/CS-352: Embedded Microcontroller Systems Real Time Control Must be able to respond predictably and in a known amount of time

ECE/CS-352: Embedded Microcontroller Systems Embedded System General Block Diagram Microcontroller (uC) sensor Sensor conditioning Output interfaces actuator indicator

ECE/CS-352: Embedded Microcontroller Systems Common Microcontrollers Atmel ARM Intel 8-bit 8XC42 MCS48 MCS51 8xC bit MCS96 MXS296 National Semiconductor COP8 Microchip 12-bit instruction PIC 14-bit instruction PIC PIC16F84 16-bit instruction PIC NEC Motorola 8-bit 68HC05 68HC08 68HC11 16-bit 68HC12 68HC16 32-bit 683xx Texas Instruments TMS370 MSP430 Zilog Z8 Z86E02

ECE/CS-352: Embedded Microcontroller Systems MCS-51 “Family” of Microcontollers 8051 introduced by Intel in late 1970s Now produced by many companies in many variations The most popular microcontroller – about 30-40% of market share 8-bit microcontroller

ECE/CS-352: Embedded Microcontroller Systems “Original” 8051 Microcontroller Oscillator and timing 4096 Bytes Program Memory 128 Bytes Data Memory Two 16 Bit Timer/Event Counters 8051 CPU 64 K Byte Bus Expansion Control Programmable I/O Programmable Serial Port Full Duplex UART Synchronous Shifter Internal data bus External interrupts subsystem interrupts Control Parallel ports Address Data Bus I/O pins Serial Input Serial Output

ECE/CS-352: Embedded Microcontroller Systems Review Binary/Hexadecimal DecimalBinaryHexidecimal A B C D E F Conversions: (binary) 8 E (hex) Notations for hex: 0x8E 8Eh 8E 16

ECE/CS-352: Embedded Microcontroller Systems On-Chip DATA Memory: RAM Internal RAM

ECE/CS-352: Embedded Microcontroller Systems Registers R7 R6 R5 R4 R3 R2 R1 R0 0F F 18 Bank 3 Bank 2 Bank 1 Bank 0 Four Register Banks Each bank has R0-R7

ECE/CS-352: Embedded Microcontroller Systems Bit Addressable Memory 20h – 2Fh (16 locations X 8-bits = 128 bits) 7F78 1A 10 0F F 2E 2D 2C 2B 2A Bit addressing: mov C, 1Ah or mov C, 23h.2

ECE/CS-352: Embedded Microcontroller Systems Special Function Registers DATA registers CONTROL registers Addresses 80h – FFh Direct Addressing used to access SPRs

ECE/CS-352: Embedded Microcontroller Systems On-Chip Memory: Program/Data

ECE/CS-352: Embedded Microcontroller Systems 8051 CPU Registers A (Accumulator) B PSW (Program Status Word) SP (Stack Pointer) PC (Program Counter) DPTR (Data Pointer) Used in assembler instructions

ECE/CS-352: Embedded Microcontroller Systems On-Chip Facilities Overview (Original 8051) Parallel Input/Output Ports System Clock Generator Serial Port Timers Interrupt Control

ECE/CS-352: Embedded Microcontroller Systems Parallel I/O Ports Port0 latch Port1 latch Port2 latch Port3 latch Port0Port1Port2Port3 Each port can be input or output Direction is set in Special Function Registers

ECE/CS-352: Embedded Microcontroller Systems System Clock Generator Input circuit 8051 sysclk Original 8051 uses 12 sysclk cycles per “machine cycle” External crystal oscillator

ECE/CS-352: Embedded Microcontroller Systems Serial Port (UART) Serial Port TX (transmit) RX (receive) Data sent and received serially BAUD rate must agree between sender and receiver Transmission modes selected using SFR Original 8051 had one serial port

ECE/CS-352: Embedded Microcontroller Systems Internal Timers Original 8051 has 2 timers 16 bits TH0 : TL0 Timer 0 16 bits TH1 : TL1 Timer 1 Timers increment on each system clock Timer registers (TH0, TL0, TH1, TL1) can be read or written to Timer overflow can cause “interrupts” or set SFR bits high

ECE/CS-352: Embedded Microcontroller Systems Interrupt Control … mov a, #2 mov b, #16 mul ab mov R0, a mov R1, b mov a, #12 mov b, #20 mul ab add a, R0 mov R0, a mov a, R1 addc a, b mov R1, a end Program Execution interrupt ISR:orl P1MDIN, #40h orl P1MDOUT,#40h cpl P1.6 reti return

ECE/CS-352: Embedded Microcontroller Systems Interrupt Control Original 8051 has five sources of interrupts Timer 1 overflow Timer 2 overflow External Interrupt 0 External Interrupt 1 Serial Port events (buffer full, buffee empty, etc) Interrupts enabled and disabled using SFR