Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

Similar documents
Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

Am186ER/Am188ER AMD continues 16-bit innovation

System Reset / C167. Figure 17-1 External Reset Circuitry. Semiconductor Group 17-1

CPU CPU MEMORY MICRO CONTROLLER MICRO PROCESSER. Consists Memory, I/o ports. Memory, I/O Ports to be connected externally. MEMORY I/O PORTS I/O PORTS

Features. M. Krishna Kumar MAM/M5/LU13/2004 1

80C196EA CHMOS 16-BIT MICROCONTROLLER

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

8051 Microcontroller

Chapter 8 Summary: The 8086 Microprocessor and its Memory and Input/Output Interface

Module 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1

Pin diagram Common SignalS Architecture: Sub: 8086 HARDWARE

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

8051 Microcontroller

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

Introducing The MCS 251 Microcontroller -- 8XC251SB

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

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

CHAPTER 1 MICROCOMPUTER SYSTEMS. 1.1 Introduction. 1.2 Microcontroller Evolution

Pin Description, Status & Control Signals of 8085 Microprocessor

8086 Hardware Specification

Instructions Involve a Segment Register (SR-field)

FIFTH SEMESTER B.TECH DEGREE EXAMINATION MODEL TEST QUESTION PAPER, NOVEMBER CS 305: Microprocessor and Microcontrollers PART A

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

PIN DIAGRAM. Richa Upadhyay Prabhu. NMIMS s MPSTME January 19, 2016

Summer 2003 Lecture 21 07/15/03

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

MICROCONTROLLER AND PLC LAB-436 SEMESTER-5

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2.

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

INTERFACING THE ISCC TO THE AND 8086

Microcontrollers. Fig. 1 gives a comparison of a microprocessor system and a microcontroller system.

Am186 TM EM/EMLV and Am188 TM EM/EMLV

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

The Microcontroller Idea Book

Module 1. Introduction. Version 2 EE IIT, Kharagpur 1

IA186EB/IA188EB. 8-Bit/16-Bit Microcontrollers. Data Sheet. 8-Bit/16-Bit Microcontrollers January 9, 2015

1. Internal Architecture of 8085 Microprocessor

Overview of Intel 80x86 µp

Architecture of 8085 microprocessor

MICROPROCESSOR TECHNOLOGY

Lecture 1. Course Overview and The 8051 Architecture

Three criteria in Choosing a Microcontroller

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

8086 Interrupts and Interrupt Responses:

DSP56002 PIN DESCRIPTIONS

Module I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC.

EB-51 Low-Cost Emulator

EXPERIMENT NO.1. A Microcontroller is a complete computer system built on a single chip.

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices.

EC 6504 Microprocessor and Microcontroller. Unit II System Bus Structure

Microprocessors/Microcontrollers

MICROPROCESSOR BASED SYSTEM DESIGN

I Introduction to Real-time Applications By Prawat Nagvajara

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

Chapter 7 Central Processor Unit (S08CPUV2)

AVR Microcontrollers Architecture

3. The MC6802 MICROPROCESSOR

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Chapter NINE 8088,80286 MICROPROCESSORS AND ISA BUS

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

UNIT II OVERVIEW MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Introduction to 8086 microprocessors. Architecture of 8086 processors

UMBC. 80C86/80C88: CMOS version draws 10mA with temp spec -40 to 225degF. 450mV while input max can be no higher than 800mV). 0 0.

Microcomputer Architecture and Programming

History and Basic Processor Architecture

Roberto Muscedere Images and Text Portions 2003 Prentice Hall 1

These three counters can be programmed for either binary or BCD count.

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

Arduino Uno R3 INTRODUCTION

INTEGRATED CIRCUITS DATA SHEET. P89C738; P89C739 8-bit microcontrollers Dec 15. Product specification File under Integrated Circuits, IC20

Am186 TM ES/ESLV and Am188 TM ES/ESLV

C161U Embedded C166 with USB,USART and SSC

ENE 334 Microprocessors

EE4390 Microprocessors. Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System

EC 6504 MICROPROCESSOR AND MICROCONTROLLER Electronicsand Communication Engineering Fifth Semester UNIT-1I Part A 1. Definemachinecycle.

DATA SHEET. P80CL31; P80CL51 Low voltage 8-bit microcontrollers with UART INTEGRATED CIRCUITS Apr 15

Microcomputer System Design

EE 308 Spring Lecture 28 March 30, 2012 Review for Exam 2. Introduction to the MC9S12 Expanded Mode

UNIT-I. 1.Draw and explain the Architecture of a 8085 Microprocessor?

Migrating from the 8XC251Sx to the 8XC251Tx

Am186 CH. High-Performance, 80C186-Compatible 16-Bit Embedded HDLC Microcontroller DISTINCTIVE CHARACTERISTICS GENERAL DESCRIPTION

EMBEDDED SYSTEMS COURSE CURRICULUM

Introduction to ARM LPC2148 Microcontroller

C509-L 8-Bit CMOS Microcontroller. User's Manual Semiconductor/

Chapter 1: Basics of Microprocessor [08 M]

80C51FA/83C51FA EVENT-CONTROL CHMOS SINGLE-CHIP 8-BIT MICROCONTROLLER Automotive

How to Implement I 2 C Serial Communication Using Intel MCS-51 Microcontrollers

OPERATIONAL UP TO. 300 c. Microcontrollers Memories Logic

SECTION 1 QUICC/POWERQUICC DIFFERENCES

Fig 1. Block diagram of a microcomputer

Embedded World Television, Radio, CD player, Washing Machine Microwave Oven Card readers, Palm devices

8051 microcontrollers

Tutorial Introduction

SECTION 5 RESETS AND INTERRUPTS

MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Features of 8051:

D RAFT. High-Performance, 80C186- and 80C188-Compatible, 16-Bit Embedded Microcontrollers with RAM DISTINCTIVE CHARACTERISTICS GENERAL DESCRIPTION

CEIBO FE-51RD2 Development System

Transcription:

Module 2 Embedded Processors and Memory Version 2 EE IIT, Kharagpur 1

Lesson 11 Embedded Processors - II Version 2 EE IIT, Kharagpur 2

Signals of a Typical Microcontroller In this lesson the student will learn the following The Overview of Signals of Intel MCS 96 family of Microcontrollers Introduction Typical Signals of a Microcontroller Pre-requisite Digital Electronics 11.1 Introduction Microcontrollers are required to operate in the real world without much of interface circuitry. The input-output signals of such a processor are both analog and digital. The digital data transmission can be both parallel and serial. The voltage levels also could be different. The architecture of a basic microcontroller is shown in Fig. 11.1. It illustrates the various modules inside a microcontroller. Common processors will have Digital Input/Output, Timer and Serial Input/Output lines. Some of the microcontrollers also support multi-channel Analog to Digital Converter (ADC) as well as Digital to Analog Converter (DAC) units. Thus analog signal input and output pins are also present in typical microcontroller units. For external memory and I/O chips the address as well as data lines are also supported. 8 8 Timer 16-Bit RAM area CPU ADC Port A 8 ROM area Serial Port Tx Rx Port B Port C 5 8 Fig. 11.1 A basic Microcontroller and its signals Version 2 EE IIT, Kharagpur 3

Port 11 Port 10 EPORT Port 12 Watchdog Timer Stack Overflow Module A/D Converter Pulse-width Modulators SSI00 SSI01 Peripheral Addr Bus (10) Peripheral Addr Bus (16) SIO0 Baud-rate Generator Bus Control AZO:15 AD15:0 Bus Controller Memory Data Bus (16) Memory Addr Bus (24) Chip-select Unit Peripheral Interrupt Handler Port 2 SIO1 Baud-rate Generator Bus-Control Interface Unit Queue Microcode Engine Peripheral Transaction Server Interrupt Controller Ports 7.8 EPA 17 Capture/ Compares 4 Times Source (16) 8 Output/ Simulcaptures ALU Register RAM 1 Kbyte Memory Interface Unit Port 9 Destination ( 16) Code/Data RAM 3 Kbytes Serial Debug Unit Fig. 11.2 The architecture of an MCS96 processor 11.2 The Signals of Intel Mcs 96 The various units of an MCS96 processor are shown in Fig. 11.2. The signals of such a processor can be divided into the following groups Version 2 EE IIT, Kharagpur 4

Address/Data Lines Bus Control Signals Signals related to Interrupt Signals related to Timers/Event Manager Digital Input/Output Ports Analog Input/Output Ports Address and Data Pins Fig. 11.3 Signals of MCS96 A15:0 System Address Bus. These are output pins and provide address bits 0 15 during the entire external memory cycle. A20:16 Address Pins 16 20. These are output pins used during external memory cycle. These are multiplexed with EPORT.4:0. This is a part of the 8-bit extended addressing port. It is used to Version 2 EE IIT, Kharagpur 5

support extended addressing. The EPORT is an 8-bit port which can operate either as a generalpurpose I/O signal (I/O mode) or as a special-function signal (special-function mode). AD15:0 Address/Data Lines These lines serve as input as well as output pins. The function of these pins depends on the bus width and mode. When a bus access is not occurring, these pins revert to their I/O port function. AD15:0 drive address bits 0 15 during the first half of the bus cycle and drive or receive data during the second half of the bus cycle. Bus Control and Status Signals ALE Address Latch Enable: This is an output signal and is active-high output. It is asserted only during external memory cycles. ALE signals the start of an external bus cycle and indicates that valid address information is available on the system address/data bus (A20:16 and AD15:0 for a multiplexed bus; A20:0 for a demultiplexed bus). An external latch can use this signal to demultiplex address bits 0 15 from the address/data bus in multiplexed mode. BHE: Byte High Enable- During 16-bit bus cycles, this active-low output signal is asserted for word and high-byte reads and writes to external memory. BHE# indicates that valid data is being transferred over the upper half of the system data bus. WRH Write High. This is an output signal During 16-bit data transfers from the cpu to external devices, this active-low output signal is asserted for high-byte writes and word writes to external memory. BREQ: Bus Request.This is an output signal. This active-low output signal is asserted during a hold cycle when the bus controller has a pending external memory cycle. CS2:0 Chip-select Lines 0 2: Output Signal. The active-low output is asserted during an external memory cycle when the address to be accessed is in the range as programmed. HOLD: Input Signal: Hold Request An external device uses this active-low input signal to request control of the bus. HLDA: Output Signal: Bus Hold Acknowledge This active-low output indicates that the CPU has released the bus as the result of an external device asserting HOLD. INST Output signal: When high, INST indicates that an instruction is being fetched from external memory. The signal remains high during the entire bus cycle of an external instruction fetch. RD: Read Signal: Output: It is asserted only during external memory reads. READY: Ready Input: This active-high input can be used to insert wait states in addition to those programmed in the chip configuration. WR: Write: Output Signal: This active-low output indicates that an external write is occurring. This signal is asserted only during external memory writes. Version 2 EE IIT, Kharagpur 6

WRH Write High: Output Signal: During 16-bit bus cycles, this active-low output signal is asserted for high-byte writes and word writes to external memory. WRL Write Low: Output Signal: During 16-bit bus cycles, this active-low output signal is asserted for low-byte writes and word writes to external memory. Processor Control Signals CLKOUT: Clock Out: It is the output of the internal clock generator. This signal can be programmed to have different frequencies and can be used by the external devices for synchronization etc. EA: External Access: Input Signal: This input determines whether memory accesses to the upper 7 Kbytes of ROM (FF2400 FF3FFFH) are directed to internal or external memory. These accesses are directed to internal memory if EA# is held high and to external memory if EA# is held low. For an access to any other memory location, the value of EA# is irrelevant. EXTINT: External Interrupt Input: In normal operating mode, a rising edge on EXTINT sets the EXTINT interrupt pending bit. EXTINT is sampled during phase 2 (CLKOUT high). The minimum high time is one state time. If the EXTINT interrupt is enabled, the CPU executes the interrupt service routine. NMI: Nonmaskable Interrupt Input: In normal operating mode, a rising edge on NMI generates a nonmaskable interrupt. NMI has the highest priority of all prioritized interrupts. ONCE: Input: On-circuit emulation (ONCE) mode electrically isolates the microcontroller from the system. By invoking the ONCE mode, you can test the printed circuit board while the microcontroller is soldered onto the board. PLLEN: Input Signal: Phase-locked Loop Enable This active-high input pin enables the on-chip clock multiplier. The PLLEN pin must be held low along with the ONCE# pin to enter on-circuit emulation (ONCE) mode. RESET: I/O Reset: A level-sensitive reset input to, and an open-drain system reset output from, the microcontroller. Either a falling edge on or an internal reset turns on a pull-down transistor connected to the RESET for 16 state times. In the power down and idle modes, asserting RESET causes the microcontroller to reset and return to normal operating mode. RPD: Return-From-Power-Down Input Signal: Return from Power down Timing pin for the return-from-power down circuit. TMODE: Test-Mode Entry Input: If this pin is held low during reset, the microcontroller will enter a test mode. The value of several other pins defines the actual test mode. XTAL1 I Input Crystal/Resonator or External Clock Input: Input to the on-chip oscillator and the internal clock generators. The internal clock generators provide the peripheral clocks, CPU clock, and CLKOUT signal. When using an external clock source instead of the on-chip oscillator, connect the clock input to XTAL1. Version 2 EE IIT, Kharagpur 7

XTAL2: Output: Inverted Output for the Crystal/Resonator Output of the on-chip oscillator inverter. Leave XTAL2 floating when the design uses an external clock source instead of the onchip oscillator. Parallel Digital Input/Output Ports P2.7:0 I/O Port 2: This is a standard, 8-bit, bidirectional port that shares package pins with individually selectable special-function signals. P2.6 is multiplexed with the ONCE function. P3.7:0 I/O Port 3: This is a memory-mapped, 8-bit, bidirectional port with programmable open drain or complementary output modes. P4.7:0 I/O Port 4 This is a memory-mapped, 8-bit, bidirectional port with programmable open drain or complementary output modes. P5.7:0 I/O Port 5 This is a memory-mapped, 8-bit, bidirectional port. P7.7:0 I/O Port 7 This is a standard, 8-bit, bidirectional port that shares package pins with individually selectable special-function signals. P8.7:0 I/O Port 8: This is a standard, 8-bit, bidirectional port. P9.7:0 I/O Port 9: This is a standard, 8-bit, bidirectional port. P10.5:0 I/O Port 10: This is a standard, 6-bit, bidirectional port that is multiplexed with individually selectable special-function signals. P11.7:0 I/O Port 11: This is a standard, 8-bit, bidirectional port that is multiplexed with individually selectable special-function signals. P12.4:0 I/O Port 12: This is a memory-mapped, 5-bit, bidirectional port. P12.2:0 select the TROM Most of the above ports are shared with other important signals discussed here. For instance Port 3 pins P3.7:0 share package pins with AD7:0. That means by writing a specific word to the configuration register the pins can change their function. Serial Digital Input/Output Ports TXD1:0 Output Signal: Transmit Serial Data 0 and 1. It can be programmed in different modes by writing specific words to the internal configuration registers. RXD1:0 Input: Receive Serial Data 0 and 1 in different preprogrammed modes. Version 2 EE IIT, Kharagpur 8

Analog Inputs ACH15:0: Input Analog Channels: These signals are analog inputs to the A/D converter. The ANGND and VREF pins are also used for the standard A/D converter to function. Other important signals of a typical microcontroller include Power Supply and Ground pins at multiple points Signals from the internal programmable Timer Debug Pins The reader is requested to follow the link www.intel.com/design/mcs96/manuals/272804.htm or www.intel.com/design/mcs96/manuals/27280403.pdf for more details. Some Specifications of the Processor Frequency of Operation: 40 MHz 2 Mbytes of linear address space 1 Kbyte of register RAM 3 Kbytes of code RAM 8 Kbytes of ROM 2 peripheral interrupt handlers (PIH) 6 peripheral interrupts 83 I/O port pins 2 full-duplex serial ports with baud-rate generators Synchronous serial unit 8 pulse-width modulator (PWM) outputs with 8-bit resolution 16-bit watchdog timer Sixteen 10-bit A/D channels Programmable clock output signal 11.3 Conclusions This chapter discussed the important signals of a typical microcontroller. The detailed electrical and timing specifications are available in the respective manuals. 11.4 Questions 1. Which ports of the 80C196EA can generate PWM pulses? What is the voltage level of such pulses? Ans: Version 2 EE IIT, Kharagpur 9

2. Why the power supply is given to multiple points on a chip? Ans: The multiple power supply points ensure the following The voltages at devices (transistors and cells) are better than a set target under a specified set of varying load conditions in the design. This is to ensure correct operation of circuits at the expected level of performance. the current supplied by a pad, pin, or voltage regulator is within a specified limit under any of the specified loading conditions. This is required: a) for not exceeding the design capacity of regulators and pads; and b) to distribute currents more uniformly among the pads, so that the L di/dt voltage variations due to parasitic inductance in the package s substrate, ball-grid array, and bond wires are minimized. Version 2 EE IIT, Kharagpur 10