PVG’s College of Engineering,Nashik Microprocessor Interfacing Laboratory Second Year Computer Engineering Assignment 8: 8255 PPI Problem Definition: (a) Write 8086 ALP to interface DAC and generate following waveforms on oscilloscope, (i) Square wave - Variable Duty Cycle and Frequency. (ii) Ramp wave - Variable direction, (iii) Trapezoidal wave, (iv) Stair case wave Theory: • The 82C55 is a popular interfacing component, that can interface any TTL-compatible I/O device to a microprocessor. • It is used to interface to the keyboard and a parallel printer port in PCs (usually as part of an integrated chipset). • Requires insertion of wait states if used with a microprocessor using higher that an 8 MHz clock. • PPI has 24 pins for I/O that are programmable in groups of 12 pins and has three distinct modes of operation.
26
Embed
jagdishkapadnis.files.wordpress.com · Web view2016. 1. 8. · programmable control word register (CWR), using which user can program the configuration of 8255 according to requirements.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
PVG’s College of Engineering,Nashik
Microprocessor Interfacing Laboratory Second Year Computer Engineering
Assignment 8:
8255 PPI
Problem Definition:(a) Write 8086 ALP to interface DAC and generate following waveforms on oscilloscope,
(i) Square wave - Variable Duty Cycle and Frequency.
(ii) Ramp wave - Variable direction, (iii) Trapezoidal wave, (iv) Stair case wave
Theory:• The 82C55 is a popular interfacing component, that can interface any TTL-compatible
I/O device to a microprocessor.
• It is used to interface to the keyboard and a parallel printer port in PCs (usually as part of
an integrated chipset).
• Requires insertion of wait states if used with a microprocessor using higher that an 8
MHz clock.
• PPI has 24 pins for I/O that are programmable in groups of 12 pins and has three distinct
modes of operation.
PVG’s College of Engineering,Nashik
Microprocessor Interfacing Laboratory Second Year Computer Engineering
Block diagram of 8255:
PVG’s College of Engineering,Nashik
Microprocessor Interfacing Laboratory Second Year Computer Engineering
Operating Modes Of 8255:It has two basic operating modes:
1. BSR Mode (Bit Set- Reset Mode)
2. I/O Modes (Input/Output Modes )
1. Mode 0 – Basic Input/Output Mode
2. Mode 1 – StrobedInput/Output Mode
3. Mode 2 – Bi-directional Bus Mode
To control the operations of 8255, it has provided programmable control word register
(CWR), using which user can program the configuration of 8255 according to requirements.
BSR Mode of 8255 Control Word
PVG’s College of Engineering,Nashik
Microprocessor Interfacing Laboratory Second Year Computer Engineering
I/O Modes of 8255 Control Word
Connections for waveform generation:Connect 8255 to DAC PIO-card through FRC and connect OUT of DAC-PIO-card to CRO
and observe the output waveforms on CRO.
Connections for stepper motor rotation:Connect 8255 to STP PIO-card through FRC and connect STP-PIO-card to stepper motor
and observe the rotation of shaft rotation.
Conclusion:
PVG’s College of Engineering,Nashik
Microprocessor Interfacing Laboratory Second Year Computer Engineering
Assignment 9:
8253 PIT
Problem Definition:
Write 8086 ALP to program 8253 in Mode 0, modify the program for hardware retrigger able
Hardware Triggered and software triggered strobe mode. Observe the waveform at GATE Mono
shot mode. Generate a square wave with a pulse of 1 ms. Comment on the difference between &
out pin of 1C 8254 on CRO.
Theory:Features:
• Three Independent 16-Bit Counters,
• Clock input upto 10 MHz,
• Status Read-Back Command,
• Six Programmable Counter Modes,
• Binary or BCD Counting,
• Single +5V Supply,
• 8254 is superset of PIT-8253.
PVG’s College of Engineering,Nashik
Microprocessor Interfacing Laboratory Second Year Computer Engineering
Block Diagram Of 8253:
Control Word Format:
PVG’s College of Engineering,Nashik
Microprocessor Interfacing Laboratory Second Year Computer Engineering