ECE 371 Microprocessor Interfacing

Slides:



Advertisements
Similar presentations
Parul Polytechnic Institute
Advertisements

1 ECE 372 – Microcontroller Design Parallel IO Ports - Outputs Parallel IO Ports E.g. Port T, Port AD Used to interface with many devices Switches LEDs.
PROGRAMMABLE PERIPHERAL INTERFACE -8255
MC68HC11 System Overview. System block diagram (A8 version)
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Slide 1 Freescale Semiconductor. Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
CMPE 118 MECHATRONICS CMPE 118/L Introduction to Mechatronics Tu-Th 4:00-5:45pm, Jack Baskin Engineering 372 Lab: Jack Baskin Engineering 150, 24/7 Instructor:
Micro-controller or embedded controller
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 29: Microcontroller intro.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
The 8051 Microcontroller.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
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.
1 EKT 225 MICROCONTROLLER I CHAPTER 3 I/O PORT PROGRAMMING.
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
Multiplexed External Bus Interface-MEBIV3 By: Prof. Mahendra B. Salunke Asst. Prof., Department of Computer Engg., SITS, Pune-41
Chapter 4 9S12 Architecture From the text by Valvano: Introduction to Embedded Systems: Interfacing to the Freescale 9S12.
Samsung ARM S3C4510B Product overview System manager
An Introduction to Microcontroller (Hardware Specification) Lec note 4
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
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.
Minimum System Requirements Clock Generator Memory Interfacing.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
MCS51 - lecture 6. Lecture 6 1/32 Extending MCS51 system Built-in peripherals MCS51 family.
Microcontrollers Class : 4th Semister E&C and EEE Subject Code: 06ES42
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
MICROPROCESSORS AND APPLICATIONS
CIT 673 Created by Suriyong1 Micro controller hardware architechture.
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
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.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
1 Expanded Modes, Bus, External Memory Today: First Hour: Expanded Modes, Bus, Timing –Section of Huang’s Textbook –In-class Activity #1 Second.
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
1 Bringing it all together: Exploring the EVB Today: First Hour: Bringing it all together by exploring the EVB –Section of Huang’s Textbook.
Chapter Microcontroller
8085 Microprocessor: Architecture & Support Components.
1 Bringing it all together: Exploring the EVB Today: First Hour: Bringing it all together by exploring the EVB –Section of Huang’s Textbook.
Memory Organisation & Modes of Operations By: Prof. Mahendra B. Salunke Asst. Prof., Department of Computer Engg, SITS, Pune-41
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Components of a typical full-featured microcontroller.
AVR Architecture Prepared By: Avdhesh Soni ( ) Sarthak Patel ( ) Akshay Parekh ( ) Fenil Sachla ( ) Guided.
INTV1 & MMCV4 By: Prof. Mahendra B. Salunke Asst. Prof., Department of Computer Engg., SITS, Pune-41 URL: microsig.webs.com.
MICROPROCESSOR INTEL 8086/8088 BY: SERA SYARMILA SAMEON.
Gandhinagar Institute of Technology
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Introduction to Microcontroller Technology
8255 Programmable Peripheral Interface
The 8051 Microcontroller architecture
Place your image on top of this gray box. If no graphic is
9S12C Multiplexed Bus Expansion
General Purpose I/O.
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
8085 Microprocessor Architecture
The Arduino Microcontroller: Atmel AVR Atmega 328
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Introduction to Microprocessors and Microcontrollers
The 8051 Microcontroller (8 bit )
8085 Microprocessor Architecture
Programmable Peripheral Interface
Important 8051 Features On chip oscillator 4K bytes ROM 128 bytes RAM
8051 Micro Controller.
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
The 8051 Microcontroller (8 bit )
Place your image on top of this gray box. If no graphic is
8085 Microprocessor Architecture
Presentation transcript:

ECE 371 Microprocessor Interfacing Unit 2 - Introduction to the MC9S12DP256B Microcontroller

16-bit Microcontroller Family (Partial List) • MC9S12D64 MC9S12DG128B MC9S12DP256B (our chip) MC9S12DP512

Product Numbering System MC 9 S12 DP 256 B Status Memory type - 9:flash Core type Family Approximate memory size Flash revision

HCS12 Variants

68HC12 References http://www.freescale.com Lab Computers – Files products -> microcontrollers -> 16 bit microcontrollers documentation -> microcontrollers -> 16 bit microcontrollers Lab Computers – Files

INTERNAL FEATURES OF MCS912DP256B (PARTIAL LIST) MEMORY A/D CONVERTER I/O PORTS PULSE-WIDTH MODULATON OUTPUTS SERIAL I/O WATCH DOG TIMER TIMER CONTROLLER AREA NETWORK (CAN) SIGNALS PULSE ACCUMULATOR

INTERNAL MEMORY OF MCS912DP256B • 12 K BYTES OF RAM (PROGRAM CODE, VARIABLES, AND STACK) • 4K BYTES OF EEPROM (SYSTEM DATA) • 256K BYTES OF FLASH EEPROM (PROGRAM CODE) • ALSO 2K BYTES FOR REGISTERS

Registers Programmable Memory Manager Internal SRAM CPU Internal EEPROM 16-bit Address 64K Internal Flash External SRAM 256K

CONNECTIONS TO THE OUTSIDE WORLD 112 PINS ON MC9S12DP256B CHIP PORTS A - 8 BITS B - 8 BITS E - 8 BITS H - 8 BITS J - 4 BITS K - 7 BITS M - 8 BITS P - 8 BITS S - 8 BITS T - 8 BITS AD0 - 8 BITS AD1 - 8 BITS TOTAL: 91 I/O BITS 13 PINS FOR INPUT VOLTAGES AND GROUND 6 PINS FOR CLOCK INPUTS AND RESET 2 OTHER PINS (BKGD, TEST) NOTE: MOST PINS HAVE MULTIPLE FUNTIONS

ALTERNATE FUNCTIONS OF PORT PINS PORTS A AND B - EXTERNAL ADDRESS/DATA BUS PORT E - 8 BITS - CONTROL SIGNALS, MODE SELECTION, INTERRUPT REQUESTS, PORT T - 8 BITS - TIMER PINS PORT S - 8 BITS - ASYNCHRONOUS SERIAL I/O (SCI) PINS PORT H - 8 BITS - SYNCHRONOUS SERIAL I/O (SPI) PINS; INTERRUPT REQUESTS PORT M - 8 BITS SPECIAL SERIAL I/O (BDLC, CAN) PORT J - 4 BITS - INTERRUPT REQUESTS; CAN SIGNALS

MORE ALTERNATE FUNCTIONS OF PORT PINS PORT P - 8 BITS - PULSE WIDTH MODULATION (PWM) OUTPUTS; INTERRUPT REQUESTS PORT K - 7 BITS - ADDRESS LINES A19-A14 FOR EXPANDED (EXTERNAL ACCESS MODE) PORT AD0 - 8 BITS - INPUTS TO A/D CONVERTER 0 PORT AD1 - 8 BITS - INPUTS TO A/D CONVERTER 1

MC9SDP256B Block Diagram

Operating Modes Normal Single-Chip Mode • No External Addresses No External Data Buses Single Chip Stand Alone Mode Port A – General Purpose I/O Port B – General Purpose I/O Selected by: - BKGD =1, MODB = 0, MODA = 0 Operating Modes are Sensed at Reset

Operating Modes Normal Expanded Wide Mode • Multiplexed 16-bit Address/16-bit Data Bus Port A – High Address and Data Bits Port B – Low Address and Data Bits ADDR[7:0] and DATA[7:0] Control Signals: R/W (from PE2) ECLK (from PE4) Selected by: - BKGD =1, MODB = 1, MODA = 1

Operating Modes Normal Expanded Narrow Mode • Multiplexed 16-bit Address/8-bit Data Bus Port A – High Address and All 8 Data Bits- ADDR[15:8] and DATA[7:0] Port B – Low Address ADDR[7:0] Control Signals: R/W (from PE2) ECLK (from PE4) Selected by: - BKGD =1, MODB = 0, MODA = 1

MULTIPLEXED WIDE BUS ADDR7 - ADDR0/ DATA7 - DATA0 PB7 - PB0 ADDR 15 - ADDR8/ DATA15 - DATA8 PA7 - PA0 PE2 R/W (EXTERNAL BUS CLOCK) PE4 ECLK LSTRB PE3

MULTIPLEXED NARROW BUS ADDR7 - ADDR0 PB7 - PB0 PA7 - PA0 ADDR 15 - ADDR8/ DATA7 - DATA0 PE2 R/W PE4 ECLK

Access Type vs. Bus Control Pins Table 12-5 Access Type vs. Bus Control Pins /LSTRB A0 R/W Type of Access 1 0 1 8-bit read of an even address 0 1 1 8-bit read of an odd address 1 0 0 8-bit write of an even address 0 1 0 8-bit write of an odd address 0 0 1 16-bit read of an even address 1 1 1 XXX 0 0 0 16-bit write to an even address 1 1 0 XXX

Interface to 16-bit Data Bus A17 .. A1 A17 .. A1 /cs1 cs2 /oe /we /cs1 cs2 /oe /we 128K x 8 128K x 8 D15 .. D8 High Byte D7 .. D0 Low Byte

ADDRESS LATCHES MC9SDP256B12 ADDR7 - ADDR0 PB7 - PB0 CLK ADDR 15 - ADDR8 PA7 - PA0 CLK ECLK PE4 ADDRESS LATCHED BY ON CLK

Demultiplexed Address ECLK ADR2 ADR3 ADR4 ADR1 DAT2 DAT3 DAT3 DAT1 Demultiplexed Address ADR1 ADR2 ADR3 ADR4

PAGE ADDRESSING FOR EMULATION EXPANDED MODES MC9SDP256B12 PK5 - PK0 XADDR19 - XADDR 14 PK7 ECS (IF ECS = 0, USE XADDR19 - XADDR 14, ALONG WITH ADDR13 - ADDR0) (IF ECS = 1, USE ONLY ADDR15 - ADDR0)

ECLK WE R/W (WRITE) OE (READ) GENERATION OF READ AND WRITE SIGNALS FOR MEMORY INTERFACING ECLK WE R/W (WRITE) OE (READ)

In the Normal Expanded Narrow Mode and the Normal Expanded Wide Mode, the Page Window Access Memory Region Can be Allocated Between External Memory and Internal Memory

The ECS Signal is activated in the Emulation Expanded Narrow Mode and the Emulation Expanded Wide Mode when the Microcontroller Tries to Access Memory Through the Page Access Window Which Would Have Been Accessed Internally if the Normal Expanded Narrow Mode or the Normal Expanded Wide Mode, Respectively, Had Been Used.