ELEC4601 Microprocessors Lab 2 Tutorial Signal Waveforms and Parallel port programming.

Slides:



Advertisements
Similar presentations
8085 Microprocessor Architecture – Demultiplexing the AD7-AD0
Advertisements

Parul Polytechnic Institute
VHDL 8 Practical example
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 4.
Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle and Timing diagram Topic : Instruction.
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
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.
Mark Neil - Microprocessor Course 1 Digital to Analog Converters.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
Gursharan Singh Tatla Block Diagram of Intel 8086 Gursharan Singh Tatla 19-Apr-17.
ELEC4601 Microprocessor systems Lab 4 Tutorial USART and Floating point.
Microcomputer & Interfacing Lecture 2
MODES OF Details of Pins Pin 1 –Connected Ground Pins 2-16 –acts as both input/output. Outputs address at the first part of the cycle and outputs.
DEEPAK.P MICROPROCESSORS AND APPLICATIONS Mr. DEEPAK P. Associate Professor ECE Department SNGCE 1.
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
Intel
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
8086/8088 Hardware Specifications A Course in Microprocessor Electrical Engineering Dept. University of Indonesia.
Computer Architecture
ELEC4601 Microprocessor systems Lab 3 Tutorial
Input/Output. I/O Initiation & Control  Transfer of data between circuitry external to the microprocessor and the microprocessor itself.  Transfer of.
BASIC INPUT AND OUTPUT INTERFACING.  8085A communicate with outside world using the I/O devices.  Since memory and I/O devices share the system bus,
Basic I/O Interface A Course in Microprocessor
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Computer Architecture Lecture 9 by Engineer A. Lecturer Aymen Hasan AlAwady 10/2/2014 University of Kufa - Information Technology Research and Development.
CPU Design. Introduction – The CPU must perform three main tasks: Communication with memory – Fetching Instructions – Fetching and storing data Interpretation.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
Introduction First 32 bit Processor in Intel Architecture. Full 32 bit processor family Sixth member of 8086 Family SX.
8086/8088 Hardware System. Typical Microprocessor Memory System CPU Memory Control Address Data.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Programmable Peripheral Interface Parallel port Interface 8255
80386DX functional Block Diagram PIN Description Register set Flags Physical address space Data types.
Projects 8051.
CIT 673 Created by Suriyong1 Micro controller hardware architechture.
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports.
Interfacing Data Converters. D/A converters Design an O/P port with the address FFh to interface the 1408 D/A converter that is calibrated for 0 to 10V.
Khaled A. Al-Utaibi  I/O Ports  I/O Space VS Memory Space  80x86 I/O Instructions − Direct I/O Instructions − Indirect I/O Instructions.
Different Microprocessors Tamanna Haque Nipa Lecturer Dept. of Computer Science Stamford University Bangladesh.
Fundamentals of Programming Languages-II
MACHINE CYCLE AND T-STATE
8085 Microprocessor: Architecture & Support Components.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
MICROPROCESSOR INTEL 8086/8088 BY: SERA SYARMILA SAMEON.
BITS Pilani Pilani Campus Pawan Sharma ES C263 Microprocessor Programming and Interfacing.
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.
Seminar On 8085 microprocessor
Everybody.
The 8085 Microprocessor Architecture
Interfacing I/O Devices
Diagram of microprocessor interface with IO devices
The 8085 Microprocessor Architecture
TIMING DIAGRAM OF 8085.
collected by C.Gokul AP/EEE,VCET
8085 Microprocessor Architecture
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Introduction to Microprocessors and Microcontrollers
Interfacing Memory Interfacing.
Instruction cycle Instruction: A command given to the microprocessor to perform an operation Program : A set of instructions given in a sequential.
Parallel communication interface 8255
Architecture & Support Components
8085 Microprocessor Architecture
The 8085 Microprocessor Architecture
8085 Microprocessor Architecture
Presentation transcript:

ELEC4601 Microprocessors Lab 2 Tutorial Signal Waveforms and Parallel port programming

Reading Materials From your class notes: –Pin-outs and Pin Functions (pages 66-70) –Bus Buffering and Latching (page 72) –Bus Timing (pages ) From the SDK-86 manual: –OB (Output Byte) Command (page 3-15) From the Peripherals Handbook: –8255A (starting on page 3-100, specifically page ) From the 8086 Hardware Reference Manual: –Look up commands OUT, MOV and JMP (For # of clock cycles, numbers in brackets are for 186)

Pre-lab For your Pre-Lab: –Calculate the number of clock cycles expected in the program fragment of part A (page Lab#2-4) –Find Control Byte value (part B step 1) –Write the program (part B step 4) Further study (from Lab Manual): –Read Appendix A, logic analyzer operation –Read Appendix B, in particular the 8255A and DAC extensions

SIGNAL WAVEFORMS Part A

Objectives Understand bus cycles / timing What do the ALE, WR and RD bits indicate? Can you tell what is the happening during each clock cycle by looking at ALE, WR, RD and contents of the bus? Instruction pre-fetching, and the effect of JMP on the instruction queue

Logic analyzer view (incorrect!)

Pre-lab  Calculate the number of cycles the program segment should take to execute (page Lab#2-4) Lab2.asm available on the course web

Procedure 1.Run the program (lab2.asm) –Infinite loop that continuously moves data from register to memory 2.Monitor bus signals during program execution –Logic Analyzer will show the signals (20 bit address/data, WR, RD, ALE, PCLK) –Show the Analyzer waveform to a TA to verify 3.Draw the waveforms on the timing diagram in lab manual (Show your work. Rest of part A can be done after the lab) 4.Interpret what is happening at each clock cycle (Table 1) 5.Explain what is happening on the bus during program execution (Q. 5-8)

PARALLEL PORT PROGRAMMING Part B

Objectives Understand how to set up 8255A I/O port Understand how to output values to the port Understand how to determine control word to configure the port Understand how the D/A converter works Write a program using this information to produce a sawtooth waveform –You should be able to adjust the period and amplitude of your waveform by adjusting your code

DA converter concept  D/A converter produces converts digital value to analogue Each data byte you output to D/A converter will produce a certain constant voltage level Your code will have to make the output a continuous (?) sawtooth waveform  Voltage levels linearly related to data values (which range from 00H to FFH)  Demonstrate your waveform to TA 1.Ramp from your pre-lab code 2.Modification you made later o/p voltage 7F 0 V

Part B: Pre-Lab  Determine the control word needed for part B  Write the program for Part B (name it lab2b.asm) Try to optimize your coding  Know how you can adjust the amplitude and period  M odify program

Part B: Procedure Program the I/O port for certain output –8255A: I/O component is used to interface to CPU –Control register is used to configure ports –Use OB (output byte) command from keypad to output to ports –Use OUT command in your program to do the same Use this port to send data values to the D/A converter Find data values that produce specified voltage levels –You will use an oscilloscope to view the D/A output –Your should be able to calculate certain data value needed for certain output voltage

See you next week!