8051 Hardware Overview

Similar documents
Flash Microcontroller. Memory Organization. Memory Organization

8051 hardware summary

Microcomputer Components SAB 80515/SAB 80C515 8-Bit Single-Chip Microcontroller Family

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

Flash Microcontroller. Architectural Overview. Features. Block Diagram. Figure 1. Block Diagram of the AT89C core

8031AH 8051AH 8032AH 8052AH NMOS SINGLE-CHIP 8-BIT MICROCONTROLLERS

TDA General description. 2. Features and benefits. Low power single card reader

Hardware and Software Requirements

DS87C520/DS83C520 EPROM/ROM High-Speed Micro

DS87C530/DS83C530. EPROM/ROM Micro with Real Time Clock PRELIMINARY FEATURES PACKAGE OUTLINE DALLAS DS87C530 DS83C530 DALLAS DS87C530 DS83C530

80C51/87C51/80C52/87C52 80C51 8-bit microcontroller family 4 K/8 K OTP/ROM low voltage (2.7 V 5.5 V), low power, high speed (33 MHz), 128/256 B RAM

Serial Communications

8-bit Microcontroller with 12K Bytes Flash and 2K Bytes EEPROM AT89S8253

8051 Serial Port. Crystal TXD. I/O Device RXD. Embedded Systems Peripherals

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52

8-bit Microcontroller with 8K Bytes In-System Programmable Flash. AT89LP52 - Preliminary

PART B QUESTIONS AND ANSWERS UNIT I

8085 INSTRUCTION SET

MICROPROCESSOR AND MICROCOMPUTER BASICS

2.8.3 / (Z80 Serial I/O)

8-Bit Microcontroller with 8K Bytes Flash AT89S8252. Features. Description

Microprocessor & Assembly Language

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes:

AT89C Bit Microcontroller with 1 Kbyte Flash. Features. Description. Pin Configuration

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52. Features. Description

CoE3DJ4 Digital Systems Design. Chapter 4: Timer operation

8XC51FX CHMOS SINGLE-CHIP 8-BIT MICROCONTROLLERS

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52. Features. Description

8-bit Microcontroller with 8K Bytes Flash AT89S8252

MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS

Advanced Microcontrollers Grzegorz Budzyń Lecture. 3: Electrical parameters of microcontrollers 8051 family

Central Processing Unit (CPU)

Chapter 13. PIC Family Microcontroller

AN108 IMPLEMENTING A REALTIME CLOCK. Relevant Devices. Introduction. Key Points. Overview

Design and Implementation of Home Monitoring System Using RF Technology

CHAPTER 7: The CPU and Memory

8-bit Flash Microcontroller with 64K bytes Program Memory AT89LP51RD2 AT89LP51ED2 AT89LP51ID2

Introduction to Microcontrollers

8051 MICROCONTROLLER COURSE

8-bit Microcontroller with 20K Bytes Flash AT89C55WD

Z80 Instruction Set. Z80 Assembly Language

1. Computer System Structure and Components

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Embedded. Engineer s. Development. Tool (EEDT 5.0)

Application Note 162 INTERFACING THE DS18X20/DS WIRE TEMPERATURE SENSOR IN A MICRO-CONTROLLER ENVIRONMENT.

PDIP (T2) P1.0 (T2 EX) P1.1 VCC P0.0 (AD0) P0.1 (AD1) P0.2 (AD2) P0.3 (AD3) P1.2 P1.3 P1.4

8741A UNIVERSAL PERIPHERAL INTERFACE 8-BIT MICROCOMPUTER

Interrupts. 1.Maskable interrupt request can be ignored or delayed by the microprocessor and used in telephone

LABORATORY MANUAL EE0310 MICROPROCESSOR & MICROCONTROLLER LAB

4 Character 5x7 LED Matrix Display

ALL-USB-RS422/485. User Manual. USB to Serial Converter RS422/485. ALLNET GmbH Computersysteme Alle Rechte vorbehalten

Chapter 1 Computer System Overview

A N. O N Output/Input-output connection

Keil C51 Cross Compiler

Z80 Microprocessors Z80 CPU. User Manual UM Copyright 2014 Zilog, Inc. All rights reserved.

INTEGRATED CIRCUITS DATA SHEET. P83C562; P80C562 8-bit microcontroller Apr 16. Product specification File under Integrated Circuits, IC20

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT. COURSE CURRICULUM COURSE TITLE: COMPUTER ORGANIZATION AND ARCHITECTURE (Code: )

Chapter 5, The Instruction Set Architecture Level

ET-BASE AVR ATmega64/128

Modbus RTU Communications RX/WX and MRX/MWX

CSE2102 Digital Design II - Topics CSE Digital Design II

8-bit Microcontroller with 2/4-Kbyte Flash AT89LP2052 AT89LP4052

Objectives. Basics of Serial Communication. Simplex vs Duplex. CMPE328 Microprocessors (Spring ) Serial Interfacing. By Dr.

Real-time system programs

Cellphone Based Device Control With Voice Acknowledgement

Using The PIC I/O Ports

PIN ASSIGNMENT PIN QFP

Microtronics technologies Mobile:

FlashFlex MCU SST89E516RD2 / SST89E516RD SST89V516RD2 / SST89V516RD

KSH-3000-MI. Swipe Card Reader. ( Magnetic / IC Card two in One Reader ) Revision Reason Date V

MACHINE ARCHITECTURE & LANGUAGE

TMU3114MS. USB Full Speed Controller. Data Sheet. Tenx reserves the right to change or discontinue this product without notice. tenx technology inc.

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

8-bit Microcontroller with 16K/ 32K Bytes Flash AT89C51RB2 AT89C51RC2

M68HC05. Microcontrollers MC68HC705J1A MC68HRC705J1A MC68HSC705J1A MC68HSR705J1A. Technical Data

AN974 APPLICATION NOTE

8254 PROGRAMMABLE INTERVAL TIMER

My husband who made me believe that I could write this book!

S7 for Windows S7-300/400

CENTRONICS interface and Parallel Printer Port LPT

R8C/13 Group Hardware Manual

Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB

Addressing The problem. When & Where do we encounter Data? The concept of addressing data' in computations. The implications for our machine design(s)

User Manual. AS-Interface Programmer

Using the Intel MCS -51 Boolean Processing Capabilities

Software Serial Port for ROM/RAM Monitor

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

ELEG3924 Microprocessor Ch.7 Programming In C

LINDY ELECTRONICS LIMITED & LINDY-ELEKTRONIK GMBH - SECOND EDITION

USB TO SERIAL ADAPTER

8086 Microprocessor (cont..)

Real-Time Clock. * Real-Time Computing, edited by Duncan A. Mellichamp, Van Nostrand Reinhold

WHQL Certification Approval...2 User Interface...3 SUNIX s COMLab..4

8-bit Microcontroller with 2K Bytes Flash AT89C2051

Chapter 02: Computer Organization. Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures

Toshiba Serial Driver Help Kepware Technologies

Interrupts and the Timer Overflow Interrupts Huang Sections What Happens When You Reset the HCS12?

Transcription:

Hardware Overview Page 1 of 5 Hardware Overview 3 basic versions of the MCS-51: ROM RAM I/O lines Counter/Timers Interrupt bytes 128 bytes 32 2 16 bit 5 (2 ext) 8031 none 8751 same as but with EPROM 8052 8K bytes 256 bytes 3 16 bit 6 (2 ext) 8032 8752 a duplex serial port bit-level Boolean processor Block diagram Interrupts INT0' INT1' Interrupt Control Interrupts 8K ROM ROM 256 Bytes RAM Timer 2 128 Timer 1 Bytes RAM Timer 0 T2 T1 T0 Counter Inputs CPU XTAL1 OSC XTAL2 Bus Control 4 I/O Ports Serial Port WR' RD' PSEN' P0 P1 Address/ Data P2 P3 TXD RXD Pinout T2 only T2EX RXD TXD INT0' INT1' T0 T1 WR' RD' P3.0 P3.1 P3.2 P3.3 P3.4 P3.5 P3.6 P3.7 XTAL2 XTAL1 Vss 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 PSEN' AD0 AD1 AD2 AD3 AD4 AD5 AD6 AD7 Vpp PROG' A15 A14 A13 A12 A11 A10 A9 A8

Hardware Overview Page 2 of 5 WR' Write strobe to write external data memory. RD' Read strobe to read external data memory. address strobe for the bytes of program memory. = 0 for external ROM. = 1 for internal ROM. Address latch enable for latching the address signals on P0. = 1 for latching address signals on P0. = 0 for latching data signals on P0. PSEN' Program store enable for reading external program memory. Memory map FFFF FFFF 0FFF 0000 1000 = 1 60K = 0 FF 80 7F 00 Special Function Registers 128 bytes Data RAM 128 bytes 0000 RAM 6 Program Memory Data Memory Data Memory address lines bytes addressed in decimal (hex) address lines bytes addressed in decimal (hex) 1 2 9 512 (200) 2 4 10 1024=1K (400) 3 8 11 2048=2K (800) 4 16 (10) 12 4096= (1000) 5 32 (20) 13 8192=8K (2000) 6 64 (40) 14 16384=16K (4000) 7 128 (80) 15 32768=32K (8000) 8 256 (100) 16 65536=6 (10000) Interrupt vector addresses in program memory Timer 2 interrupt 002B Serial port interrupt 0023 Timer 1 interrupt 001B interrupt 1 0013 Timer 0 interrupt 000B interrupt 0 0003 Reset 0000

Hardware Overview Page 3 of 5 The first 256 bytes of internal data memory F8 F0 B E8 E0 ACC D8 D0 PSW C8 T2CON RCAP2L RCAP2H TL2 TH2 C0 B8 IP B0 P3 A8 IE A0 P2 98 SCON SBUF 90 P1 88 TCON TMOD TL0 TL1 TH0 TH1 80 P0 SP DPL DPH PCON 78 70 68 60 58 50 48 40 38 30 28 Can be addressed as 16 bytes or 128 individual bits. Byte addresses are 20H to 2F. Bit 20 addresses are 00H to 7F. 18 Reg 0 Reg 1 Reg 2 Reg 3 Reg 4 Reg 5 Reg 6 Reg 7 Bank 3 10 Reg 0 Reg 1 Reg 2 Reg 3 Reg 4 Reg 5 Reg 6 Reg 7 Bank 2 8 Reg 0 Reg 1 Reg 2 Reg 3 Reg 4 Reg 5 Reg 6 Reg 7 Bank 1 0 Reg 0 Reg 1 Reg 2 Reg 3 Reg 4 Reg 5 Reg 6 Reg 7 Bank 0 Special function registers (SFR) (128 bytes) Scratch pad area (80 bytes) ACC Accumulator B B register for multiply and divide. PSW program status word PSW.7 Carry flag (CY) PSW.6 Auxiliary carry flag (AC) PSW.5 User define PSW.4 & 3 Register bank select (RS1, RS0): 00=Bank 0; 01=Bank 1; 10=Bank 2; 11=Bank 3 PSW.2 Overflow flag (OV) PSW.1 User define PSW.0 Parity flag (P) SP Stack pointer. Initialized to 07H. SP is incremented before data is pushed on the stack. DPTR Data pointer (DPH, DPL). To store a 16-bit address for certain instructions. P0, P1, P2, P3 Port latches matching the 4 I/O ports. SBUF Serial data buffer. Read and write registers for the serial port. SCON Serial port control. TMOD Timer mode. TCON Timer control. T2CON 8052 timer 2 control.

Hardware Overview Page 4 of 5 PCON Power control. Use in the 80C51 only. IE Interrupt enable. 1=enable; 0=disable. IE.7 all interrupts (EA). IE.6 not used. IE.5 timer 2 (ET2). (8052 only). source IE0. interrupt address at 002B. IE.4 serial port (ES). source TF0. interrupt address at 0023. IE.3 timer 1 (ET1). source IE1. interrupt address at 001B. IE.2 external interrupt 1(EX1). source TF1. interrupt address at 0013. IE.1 timer 0 (ET0). source R1 & T1. interrupt address at 000B. IE.0 external interrupt 0 (EX0). source TF2 & EXF2. interrupt address at 0003. IP Interrupt priority. 1=high priority; 0=low priority. IP.7 not used. IP.6 not used. IP.5 timer 2 (PT2). (8052 only). IP.4 serial port (PS). IP.3 timer 1 (PT1). IP.2 external interrupt 1 (PX1). IP.1 timer 0 (PT0). IP.0 external interrupt 0 (PX0). RCAP2L 8052 only. program memory using a 2732 EPROM XTAL 1 XTAL 2 * I/O DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 STB 8282 DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0 OE' A7 A6 A5 A4 A3 A2 A1 A0 D7 D6 D5 D4 D3 D2 D1 D0 2732 EPROM PSEN' OE' CE' A8 A9 A10 A11 * These pins are not available as I/O when any part of Port 2 is being used as an address bus.

Hardware Overview Page 5 of 5 RAM and I/O XTAL 1 XTAL 2 +5v P3.0 P3.1 P3.2 P3.3 P3.4 P3.5 P3.6 WR' P3.7 RD' PSEN' AD0 AD1 AD2 AD3 AD4 AD5 AD6 AD7 /M' RD' WR' CE' Timer out' 8155 256 bytes RAM Timer in PA.0 PA.1 PA.2 PA.3 PA.4 PA.5 PA.6 PA.7 PC.0 PC.1 PC.2 PC.3 PC.4 PC.5 PB.0 PB.1 PB.2 PB.3 PB.4 PB.5 PB.6 PB.7 Address Decimal Hex Address Decimal Hex Lines Lines 1 2 2 9 512 200 2 4 4 10 (1K) 1024 400 3 8 8 11 ( 2K) 2048 800 4 16 10 12 () 4096 1000 5 32 20 13 (8K) 8192 2000 6 64 40 14 (16K) 16384 4000 7 128 80 15 (32K) 32768 8000 8 256 100 16 (6) 65536 10000 A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0