ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 7.

Slides:



Advertisements
Similar presentations
ECE 353 Introduction to Microprocessor Systems
Advertisements

IO Interfaces and Bus Standards. Interface circuits Consists of the cktry required to connect an i/o device to a computer. On one side we have data bus.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 10.
Computer Architecture
I/O Organization popo.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
INPUT-OUTPUT ORGANIZATION
8086 [2] Ahad. Internal! External? 8086 vs _bit Data Bus 20_bit Address 8_bit Data Bus 20_bit Address Only external bus of 8088 is.
Parul Polytechnic Institute
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Khaled A. Al-Utaibi 8086 Bus Design Khaled A. Al-Utaibi
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
COMP3221: Microprocessors and Embedded Systems Lecture 17: Computer Buses and Parallel Input/Output (I) Lecturer: Hui.
8086.  The 8086 is Intel’s first 16-bit microprocessor  The 8086 can run at different clock speeds  Standard 8086 – 5 MHz  –10 MHz 
The 8085 Microprocessor Architecture
Microprocessor and Microcontroller
The 8085 Microprocessor Architecture. Contents The 8085 and its Buses. The address and data bus ALU Flag Register Machine cycle Memory Interfacing The.
I/O Unit.
Processor System Architecture
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
I/O Subsystem Organization and Interfacing Cs 147 Peter Nguyen
Unit-5 CO-MPI autonomous
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 13.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 2.
INPUT-OUTPUT ORGANIZATION
Microcomputer & Interfacing Lecture 2
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
ECE 353 Introduction to Microprocessor Systems
Input/Output mechanisms
created by :Gaurav Shrivastava
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 8.
8086/8088 Hardware Specifications A Course in Microprocessor Electrical Engineering Dept. University of Indonesia.
ECE 353 Introduction to Microprocessor Systems Michael Schulte Week 7.
MICROPROCESSOR INPUT/OUTPUT
Input/Output. I/O Initiation & Control  Transfer of data between circuitry external to the microprocessor and the microprocessor itself.  Transfer of.
Khaled A. Al-Utaibi  Interrupt-Driven I/O  Hardware Interrupts  Responding to Hardware Interrupts  INTR and NMI  Computing the.
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
INTRODUCTION.  Upon completing this topic, you should be able to: Illustrate a basic elements of digital computer system and their functions, Depicts.
80386DX functional Block Diagram PIN Description Register set Flags Physical address space Data types.
12/16/  List the elements of 8255A Programmable Peripheral Interface (PPI)  Explain its various operating modes  Develop a simple program to.
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)
ECE 353 Introduction to Microprocessor Systems Michael J. Schulte Week 9.
بسم الله الرحمن الرحيم MEMORY AND I/O.
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
8255:Programmable Peripheral Interface
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
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.
8 085Microprocessor Temp Reg (8) Accumulator (A reg) Flag flip flops(8) Instruction Register (8) Arithmetic Logic Unit ALU Instruction Decoder and Machine.
ECE 353 Introduction to Microprocessor Systems
Class Exercise 1B.
COURSE OUTCOMES OF Microprocessor and programming
Everybody.
Diagram of microprocessor interface with IO devices
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Dr. Michael Nasief Lecture 2
8085 Microprocessor Architecture
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Interfacing Memory Interfacing.
ECE 353 Introduction to Microprocessor Systems
8085 Microprocessor Architecture
8051 Micro Controller.
8085 Microprocessor Architecture
The Programmable Peripheral Interface (8255A)
Presentation transcript:

ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 7

Topics Microprocessor support circuits Clock and reset generation Power control Microprocessor supervisors I/O subsystems GPIO pin construction I/O port design I/O decoding I/O synchronization ADuC7026 GPIO

ADuC7026 Block Diagram

Clocks Clock Generation Clock oscillators External clocks Phase-locked loops (PLLs) Operation and design issues ADuC7026 clocking PLLCON Power Control ADuC7026 operating modes POWCON ADuC7026 pin-out

Reset The reset signal is used to force the processor into a known state from which operation can reliably be started. On power up, the reset signal should be asserted long enough to ensure that the supply voltages are stable and the oscillator is running and stable Reset Generation RC reset circuit operation Shortcomings ADuC7026 pin-out

Microprocessor Supervisors Microprocessor supervisors provide reset functionality for a variety of circumstances Power-up Brown-out Glitches They can also provide a number of other services MAX807 ADuC7026 pin-out

Basic System Bus Operation Address Unidirectional from CPU Data Bidirectional Control /RS or /RD – output from CPU Indicates a read operation in progress /WS or /WR – output from CPU Indicates a write operation in progress /WAIT or /READY – input to CPU Used by external device to signal that it is not able to complete transfer yet

I/O Port Basics I/O subsystems allow the CPU to interact with the outside world Basic GPIO pin requirements Configurable as input or output Can set value driven out on the pin Can read the current value on the pin Configurable vs. multiplexed pins Unconditional I/O The I/O device can accept or return data without delay ADuC7026 pin-out

MSI I/O Ports Medium Scale Integration (MSI) circuits are available to construct ports Simple byte input ports can be constructed from… Octal buffers Octal registers Simple byte output ports can be constructed from octal registers

P Compatible I/O Devices Complex I/O devices typically require more sophisticated interface and control logic P compatible I/O devices have the necessary logic built in to the device itself Interface designed to be reasonably compatible with many microprocessor buses Need to add decoding/selection logic Example Device controllers An organizational model commonly used to interface to complex I/O devices (serial ports, LCDs, disk drives, etc.) Generic model Example – Hitachi HD44780U LCD Controller Example

I/O Address Decoding I/O address decoding determines the logical location of the I/O device Isolated I/O Memory-mapped I/O Input vs. output ports Same address does not guarantee same function! Exhaustive address decoding Partial address decoding

I/O Address Decoding (cont.) Linear selection decoding A single address line is used as the selection criteria for each device Can have n input/output devices in a system with an n-bit address bus Hazards and opportunities Note that this idea has a very limited application space!

Conditional I/O Conditional vs. unconditional transfers I/O synchronization Hardware example Polling Overhead Flags / semaphores Wait loops Timeouts Software exercise

ADuC7026 GPIO Ports The ADuC7026 has 40 pins organized as 5 ports that can be used as digital GPIO All pins have multiple functions in addition being able to be used as GPIO The configuration selection is set through the GPxCON MMR.

ADuC7026 GPIO MMRs GPxCON Determine which of a pins functions are active This is the configuration column selection on the previous slide aduc7026.inc

ADuC7026 GPIO MMRs (cont) GPxPAR PARameters Controls whether or not the internal pull-ups are used. Does not apply to ports 2 and 4

ADuC7026 GPIO MMRs (cont) GPxDAT Control the pin direction Set the output state Read the pin value Read the pin values that were present at reset

ADuC7026 GPIO MMRs (cont) GPxSET Write 1s to set the output value 0s have no effect

ADuC7026 GPIO MMRs (cont) GPxCLR Write 1s to clear the output value 0s have no effect

Wrapping Up Homework #4 will be due on Wednesday, October 29 th Reading for next week ADUC 53-60, 71-73, 75-79

ADuC7026 Clock Generation

ADuC7026 PLLCON

ADuC7026 Operating Modes

ADuC7026 POWCON

ADuC7026 Functional Block Diagram

MAX807

74HC540/541

74HC573

74HC574

AD7865

Generic Device Controller

Hitachi HD44780U LCD Controller

Conditional I/O Exercise Write a subroutine to read data from an input device like the hardware example. Assume that the flag is a READY signal (active high). If the device does not become ready after 1 trillion polling attempts, return with R0 = -1, otherwise, return with the data in R0.

Conditional I/O Example /MS0 base address = 0x

aduc7026.inc ;GPIO GPIO_MMR_BASEEQU 0xFFFFF400 GP0CONEQU0x00 GP1CONEQU0x04 GP2CONEQU0x08 GP3CONEQU0x0C GP4CONEQU0x10 GP0DATEQU0x20 GP0SETEQU0x24 GP0CLREQU0x28 GP0PAREQU0x2C