Engineering 4862 Microprocessors Lecture 25

Slides:



Advertisements
Similar presentations
The Intel 8255 Programmable Peripheral Interface chip is used to give the microprocessor (8088) access to programmable input/ output devices. It has three.
Advertisements

PROGRAMMABLE PERIPHERAL INTERFACE -8255
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Memory & IO Interfacing to CPU
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
Digital-to-Analog & Analog-to-Digital Conversion BJ Furman 17APR2014.
ECE 265 – LECTURE 14 Analog Signal Acquisition The A/D converters 5/14/ ECE265.
Engineering 4862 Microprocessors Lecture 24
Interfacing ADC to 8051.
Engineering 4862 Microprocessors Lecture 26 Cheng Li EN-4012
kashanu.ac.ir Microprocessors 10-1 IO Devices Stepper Motors DAC, ADC, PPI Lec note 10.
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.
Port Mapped I/O.
Basic I/O Interface A Course in Microprocessor
Digital-to-Analog Analog-to-Digital Microprocessor Interface.
Lecture 15: Digital to Analog Converters Lecturers: Professor John Devlin Mr Robert Ross.
Representing Numerical Data Analog Any signal that varies continuously over time Mechanical Pneumatic Hydraulic Electrical Digital Quantities are represented.
8086/8088 Hardware System. Typical Microprocessor Memory System CPU Memory Control Address Data.
Input / Output (Peripheral) Interfacing
Programmable Peripheral Interface Parallel port Interface 8255
Analog Capture- Port E. Digital to Analog and Analog to Digital Conversion D/A or DAC and A/D or ADC.
Engineering 4862 Microprocessors Lecture 21
UNIT-IV 8255 PPI Various Modes Of Operation Interfacing To 8086.
I/O AND THE 8255; ISA BUS INTERFACING
ENEE 440 Chapter PPI 8255 Register Select -CS A1 A0 REGISTER R/W PORT A R/W PORT B R/W PORT C R/W CR W 1 X X8255 NOT.
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.
Embedded Systems Design 1 Lecture Set C Interfacing the MCS-51 to: –D/A Converter –A/D Converter.
Digital-to-Analog Analog-to-Digital Week 10. Data Handling Systems  Both data about the physical world and control signals sent to interact with the.
ECET 340 Entire Course (All ilabs and Homework) For more classes visit ECET 340 Week 1 HomeWork 1 ECET 340 Week 1 iLab 1 ECET 340.
Intel 8255A PPI EEE 365 [FALL 2014] LECTURE ATANU K SAHA BRAC UNIVERSITY.
FOR MORE CLASSES VISIT   ECET 340 Week 1 HomeWork 1  ECET 340 Week 1 iLab 1  ECET 340 Week 2 HomeWork 2  ECET 340 Week 2 iLab.
Networked Embedded Systems Sachin Katti & Pengyu Zhang EE107 Spring 2016 Lecture 13 Interfacing with the Analog World.
Electronic Devices and Circuit Theory
Chapter 5 Operational Amplifier
Digital to analog converter [DAC]
MECH 373 Instrumentation and Measurements
Microprocessors Data Converters Analog to Digital Converters (ADC)
8255 Programmable Peripheral Interface
EEE /INSTR/CS F241 ES C263 Microprocessor Programming and Interfacing
Digital-to-Analog Analog-to-Digital
What is a DAC? A digital to analog converter (DAC) converts a digital signal to an analog voltage or current output DAC.
8255: Programmable Peripheral Interface (PPI)
Analog-Digital Conversion
EI205 Lecture 13 Dianguang Ma Fall 2008.
Interfacing of LCD with µP
Microcontroller Bharat Sankhlecha
The 8255 Programmable Peripheral Interface
Principles & Applications
E3165 DIGITAL ELECTRONIC SYSTEM
Digital-to-Analog Analog-to-Digital
ECET 340 Competitive Success/snaptutorial.com
ECET 340 Education for Service-- snaptutorial.com.
ECET 340 Teaching Effectively-- snaptutorial.com.
Microprocessors and Applications ANITS MP ADC – IC 0808, DAC – IC 7523
Interfacing Memory Interfacing.
Digital Control Systems Waseem Gulsher
Chapter 7 Features and Interfacing of Programmable Devices for 8085 based systems.
I/O Interfacing CSE 2312 Maher Al-Khaiyat.
Parallel communication interface 8255
Architecture & Support Components
Microprocessor Lab CSL1543 0:0:2
PIC18F458 Analog-to-Digital
Programmable Peripheral Interface
Programmable Peripheral Interface
ADC and DAC Data Converter
Analogue Inputs and Processing
ADC and DAC Data Converter
Presentation transcript:

Engineering 4862 Microprocessors Lecture 25 Cheng Li EN-4012 licheng@engr.mun.ca

Control Word of 8255 D7 D6 D5 D4 D3 D2 D1 D0 Group B Group A Port C Lower PC3-PC0 1 = input, 0 = output Port B 1 = input, 0 = output Mode Selection 0 = Mode0, 1 = Mode1 Group A Port C Upper PC7-PC4 1 = input, 0 = output Port A 1 = input, 0 = output Mode Selection 00 = Mode0, 01 = Mode1 1x = Mode 2 1 = I / O Mode 0 = BSR Mode Engr 4862 Microprocessors

8255 Design Example System Address Bus D0 A D7 B CL A2 CH A9 WR IOW RD IOR CL A2 A0 A0 System Address Bus A1 A1 CH CS A9 Engr 4862 Microprocessors

Interface DAC to a PC DAC (Digital-to-Analog Converter) Device used to convert digital pulses to analog signals Two methods of making the DAC Binary weighted R / 2R ladder The vast majority of IC use R / 2R since it can achieve a much high degree of precision Engr 4862 Microprocessors

Criterion for Judging a DAC: Resolution Resolution is a function of the number of binary inputs.  common ones are 8, 10, 12 pins The number of analog output levels is equal to 2n, where n is the number of data inputs  8-input DAC (MC1408) gives 256 discrete voltage/current levels of output  12-input DAC  4096 voltage/current levels  16-input DAC  65,536 voltage/current levels Engr 4862 Microprocessors

MC1480 DAC (or DAC 808) In MC1480, the digital inputs are converted to current (Iout) and by connecting a resister to the Iout pin, we convert the result to voltage. The current provided by Iout is a function of binary numbers at D0-D7 and the reference current. Iref is generally set to 2.0 mA. Iout = Iref . (D7/2 + D6/4 + D5/8 + D4/16 + D3/32 + D2/64 + D1/128 + D0/256). Engr 4862 Microprocessors

Interface DAC to PC Example1 Example2 Interface MC1480 to Microprocessor through PPI 8255 Example2 Interface AD558 directly to Microprocessor Engr 4862 Microprocessors

Interface MC1480 to Microprocessor through PPI 8255 Engr 4862 Microprocessors

MOV AL, 80H OUT PCtrl, AL MOV AL, 0 Cont: OUT PA, AL INC AL CMP AL, 0 JZ Stop MOV CX, 0FFFFH Here: LOOP Here JMP Cont Stop: INT 6 Engr 4862 Microprocessors

Interface AD558 to 8088 8-bit DAC Voltage Output Engr 4862 Microprocessors

Interface ADC and Sensors to a PC AD558 is configured as “write only” VCC range +4.5V ~ + 16.5 V, normally +5V Vout Range: 0 ~ 2.56 V, or 0 ~ 10 V Digital Input Code Output Voltage Binary Hex Decimal 2.56V 10V 00000000 00 0 0 0 00000001 01 1 0.010V 0.039V 00001111 0F 15 0.150V 0.586V 11111111 FF 255 2.55V 9.961V Engr 4862 Microprocessors

Engr 4862 Microprocessors

Engr 4862 Microprocessors