Micro-controller or embedded controller

Slides:



Advertisements
Similar presentations
MICROPROCESSORS AND MICROCONTROLLERS
Advertisements

Autumn 2012C.-S. Shieh, EC, KUAS, Taiwan1 The 8051 Family Microcontroller Chin-Shiuh Shieh Department of Electronic Engineering.
MC68HC11 System Overview. System block diagram (A8 version)
Chapter 2 HARDWARE SUMMARY
8051 Core Specification.
The 8085 Microprocessor 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.
Railway Foundation Electronic, Electrical and Processor Engineering.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
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.
Railway Foundation Electronic, Electrical and Processor Engineering.
Microcontroller 8051.
1 The 8051 Microcontroller and Embedded Systems CHAPTER INTERFACING TO EXTERNAL MEMORY.
The 8051 Microcontroller architecture
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.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
Hardware Summary ECE473/573 Microprocessor System Design, Dr. Shiue.
ECE/CS-352: Embedded Microcontroller Systems Embedded Microcontroller Systems.
Microcontroller Intel 8051 [Architecture]. The Microcontroller Microcontrollers can be considered as self-contained systems with a processor, memory and.
ECE 447: Lecture 1 Microcontroller Concepts. ECE 447: Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device.
Memory and I/O Interfacing
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
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.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
Internal Input/Output Devices (I/O Subsystems)
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
8051 Micro controller. Architecture of 8051 Features of 8051.
Microcontrollers Class : 4th Semister E&C and EEE Subject Code: 06ES42
Microcontrollers. An embedded microcontroller is a chip which a computer processor with all it’s support functions (clocking and reset), memory, and i/O.
Intel 8051 Another family of microcontroller is the Intel 8051 family. The basic 8051 microcontroller has four parallel input/output ports, port 0, 1,
DsPIC30F4011 Fall DIP Switches  The upper four switches of SW1 are used to enable LEDs connected to PORTB/C, PORTA/D, PORTE and PORTF. For example,
CIT 673 Created by Suriyong1 Micro controller hardware architechture.
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
Presented by Sadhish Prabhu
Features of the PIC18 microcontroller - 8-bit CPU - 2 MB program memory space (internal 32KB to 128KB) bytes to 1KB of data EEPROM - Up to 4096 bytes.
Architecture of the 8051 Microcontroller
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Chapter Microcontroller
8051 Micro Controller. Microcontroller versus general-purpose microprocessor.
8085 Microprocessor: Architecture & Support Components.
Kustanto,S.T.,M.EngECE/CS-352: Embedded Microcontroller Systems Embedded Systems By: Kustanto,S.T.,M.Eng.
Components of a typical full-featured microcontroller.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
HJD Institute of Technical Education & Research- Kera(Kutch) The 8051 Microcontroller architecture PREPARED BY: RAYMA SOHIL( )
MICROPROCESSOR INTEL 8086/8088 BY: SERA SYARMILA SAMEON.
MICROPROCESSOR AMARTYA ROY-72 ANGSHUMAN CHATTERJEE-80 ASHISH LOHIA-70 MOLOY CHAKRABORTY-60.
Memory Mapped IO (and the CerfBoard). The problem How many IO pins are available on the 8051? What if you are using interrupts, serial, etc…? We want.
DEPARTMENT OF ELECTRONICS ENGINEERING V-SEMESTER MICROPROCESSOR & MICROCONTROLLER 1 CHAPTER NO microcontroller & programming.
Embedded Microcontroller Systems
Seminar On 8085 microprocessor
The 8051 Microcontroller architecture
COURSE OUTCOMES OF Microprocessor and programming
8051 Pin - out PORT 0 PORT 1 PORT 2 PORT 3.
Embedded Microcontroller Systems
UNIT – Microcontroller.
Hardware Source: ttp:// under
BVM Engineering College Electrical Engineering Department : Microprocessor and Microcontroller Interfacing Interrupts of 8051 Prepared by:
The Arduino Microcontroller: Atmel AVR Atmega 328
Microcontroller Intel 8051
Introduction to Microprocessors and Microcontrollers
8051 Microcontroller.
Hardware Source: ttp:// under
Important 8051 Features On chip oscillator 4K bytes ROM 128 bytes RAM
Compiled by Dr. N.Shanmugasundaram, HOD, ECE Dept, SECE.
Presentation transcript:

Micro-controller or embedded controller Ceg3430 Chapter 2 Robot 2 Micro-controller or embedded controller Robot2: Embedded controller

Robot2: Embedded controller Content 1. Introduce the family 2. General description of the 8031 processor 3. Memory Interface 4. Parallel port interface 5. Serial Interface 6. Interrupt Robot2: Embedded controller

Robot2: Embedded controller References Intel’s database http://developer.intel.com/design/mcs51/ Philips’ database http://www-us2.semiconductors.philips.com/products/ Paulmon, a freeware www.ece.orst.edu/~paul/8051-goodies/goodies-index.html#paulmon On Basic52 by Jan Axelson http://www.lvr.com/microc.htm Flash ROM based 89C51 http://www.atmel.com/atmel/products/prod71.htm Robot2: Embedded controller

A simple micro-controller (e.g. 8048) has CPU (Central Processing Unit) Some internal Ram (~1K-byte) and a few (4~8) kilobytes of ROM for holding programs. Parallel input/output bus so that it can communicate with the outside world. Be able to take hardware interrupt. Robot2: Embedded controller

Additional feature of a micro-controller (8031) Serial input/output so that it can make more distant communications with other computers. Timers for counting or generating exact timing signals for control purposes. Power down circuit to keep the internal data even the main power is cut off. Robot2: Embedded controller

1.Introduce the Intel 8051 family: 8032/8051/8052 http://developer.intel.com/design/mcs51/ Features: on chip RAM (8x31=>128 bytes; 8x51=>256 bytes), on chip ROM or simple memory interface on chip timer(8xx1=>2 timers, 8xx2=>3 timers), on chip interrupt support Serial (UART), parallel port interface new products support up to 33MHz clock rate. Robot2: Embedded controller

Robot2: Embedded controller 8031 family All have 128 bytes RAM, 2 timers, 32-bit parallel IO, serial IO, 5 interrupt sources 8031 ROM-less ; use external ROM for program 8051 4K-byte ROM 8751 4K-byte UV-EPROM (ultra-violet erasable, re-programmable) 8951 8K-byte (Electrical erasable, re- programmable) Robot2: Embedded controller

Robot2: Embedded controller 8031 family All have 128 bytes RAM, 2 timers, 32-bit parallel IO, serial IO, 5 interrupt sources 8031 ROM-less ; 8051 4K-byte ROM 8751 4K-byte UV-EPROM (ultra-violet erasable, re- programmable) 8951 8K-byte (Electrical erasable, reprogrammable) Philips extended Architecture (16-bit with AD converter) Robot2: Embedded controller

Robot2: Embedded controller Philips’ 80C51 16-bit extended architecture (XA) for industrial control http://www-us2.semiconductors.philips.com/products/ The XA-C3, supports the full Controller Area Network (CAN) 2.0B. It supports both 11-bit and 29-bit identifiers (ID) at up to 1Mbit/s data rate. It The XA-S3, 8-channel 8-bit ADC (4.6ms conversion) 16 M-byte (24 bit) addressing I²C-bus serial I/O port Robot2: Embedded controller

2. General description of 8051 8/16/32 Kbyte On-Chip ROM/EPROM program memory 256 x 8-bit RAM 32 Programmable I/O Lines Three16-Bit Timer/Counters 7 Interrupt Sources Quick-Pulse EPROM Programming (8751 contains 4Kbyte UV-EPROM) Programmable Serial Port 32k+32K External Program Memory Space 32K+32k External Data Memory Space IDLE and POWER DOWN Modes Robot2: Embedded controller

Robot2: Embedded controller 8XC51FX pin assignment Robot2: Embedded controller

Memory Addressing for the 8051 family Memory space 128 bytes internal RAM space address 0-7F (hex) internal data ram, 80-FF internal data and special function registers SFR overlapped addressed by indirect and direct mode resp. 64K program space includes The lower 4K( or more depends on specific device) on chip ROM/EPROM (if exist) The rest is external memory 64K external data memory External interface uses pins: /ALE,/PSEN, IO_PORTS. Robot2: Embedded controller

Robot2: Embedded controller FFFF 32k SFR= Special Function Register 0FFF SFR 32k http://developer.intel.com/design/mcs51/manuals/272383.htm Program Latch Enable Robot2: Embedded controller

Robot2: Embedded controller

Robot2: Embedded controller Special Function Registers at internal RAM address 80 -- FF hex Accumulator Interrupt priority Stack pointer Robot2: Embedded controller

Robot2: Embedded controller Important Pins Reset ALE: Address Latch Enable, to latch address outputs at Port0 and Port2 PSEN: Program Store Enable Port 0 port 1 port 2 Robot2: Embedded controller

Robot2: Embedded controller

Robot2: Embedded controller

Robot2: Embedded controller Power up and after First let us look at what the 8031 system will do after reset. Power-up or reset. first instruction from 0000H A simple startup assembly segment is as follows: 1 Org 0 ;after reset 2 ljmp start ; long jump to start at line 3 Org 30h ; arbitrary, but addr. 4 start: mov sp,30h-1 ; set stack point at 30h Question: Guess why sp = 30h-1 not 30h? Robot2: Embedded controller

Robot2: Embedded controller External program ROM interface Robot2: Embedded controller

Robot2: Embedded controller Address Latch Enable Program Store Enable A0-A15 : 16 bit = 64K-byte address Robot2: Embedded controller

Robot2: Embedded controller

Robot2: Embedded controller

Robot2: Embedded controller

Robot2: Embedded controller To connect more memory Use 138 and A12 to do address decoding Robot2: Embedded controller

Robot2: Embedded controller

Robot2: Embedded controller

Robot2: Embedded controller 3. Parallel interface 8255 Treated as memory location at E000H Read/write registers as memory data access Robot2: Embedded controller

Robot2: Embedded controller

Robot2: Embedded controller

Robot2: Embedded controller 4. Serial Interface SM0 SM1 Mode serial Baud rate 0 0 0 F.osc./12 (8-bit) 0 1 1 depends on Timer 1 1 0 2 F.osc./64 or F.osc./32 1 1 3 Depends on Timer 1 Robot2: Embedded controller

5. five sources of interrupt TF0 Timer0, Start address: 0003H TF1 Timer1 Start address: 000BH INT0 External0 (from external pin /INT0) Start address: 0013H INT1 External1 (from external pin /INT1) Start address: 001BH Serial IO interrupt Start address: 0023H Robot2: Embedded controller