Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 1.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
Advanced Piloting Cruise Plot.
Kapitel S3 Astronomie Autor: Bennett et al. Raumzeit und Gravitation Kapitel S3 Raumzeit und Gravitation © Pearson Studium 2010 Folie: 1.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 5 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
Year 6 mental test 5 second questions
Year 6 mental test 10 second questions
ZMQS ZMQS
Richmond House, Liverpool (1) 26 th January 2004.
ABC Technology Project
Chapter 15 Integrated Services Digital Network ISDN Services History Subscriber Access Layers BISDN WCB/McGraw-Hill The McGraw-Hill Companies, Inc., 1998.
1 Undirected Breadth First Search F A BCG DE H 2 F A BCG DE H Queue: A get Undiscovered Fringe Finished Active 0 distance from A visit(A)
VOORBLAD.
15. Oktober Oktober Oktober 2012.
1 Breadth First Search s s Undiscovered Discovered Finished Queue: s Top of queue 2 1 Shortest path from s.
“Start-to-End” Simulations Imaging of Single Molecules at the European XFEL Igor Zagorodnov S2E Meeting DESY 10. February 2014.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Squares and Square Root WALK. Solve each problem REVIEW:
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
© 2012 National Heart Foundation of Australia. Slide 2.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Chapter 5 Test Review Sections 5-1 through 5-4.
SIMOCODE-DP Software.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
25 seconds left…...
Equal or Not. Equal or Not
Slippery Slope
H to shape fully developed personality to shape fully developed personality for successful application in life for successful.
Januar MDMDFSSMDMDFSSS
Week 1.
Analyzing Genes and Genomes
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Connecting LANs, Backbone Networks, and Virtual LANs
Intracellular Compartments and Transport
A SMALL TRUTH TO MAKE LIFE 100%
1 Unit 1 Kinematics Chapter 1 Day
PSSA Preparation.
VPN AND REMOTE ACCESS Mohammad S. Hasan 1 VPN and Remote Access.
Immunobiology: The Immune System in Health & Disease Sixth Edition
Essential Cell Biology
How Cells Obtain Energy from Food
Immunobiology: The Immune System in Health & Disease Sixth Edition
McGraw-Hill©The McGraw-Hill Companies, Inc., 2001 Chapter 16 Integrated Services Digital Network (ISDN)
CpSc 3220 Designing a Database
Traktor- og motorlære Kapitel 1 1 Kopiering forbudt.
Input/Output Interface Circuits and LSI Peripheral Devices
Microprocessor Lab CSL1543 0:0:2
Presentation transcript:

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 1

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 3

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 4

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 5

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 6

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 7

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 8 Example Find the control word – PA = out – PB = in – PC0 – PC3 = in – PC4 – PC7 = out Program the 8255 to get data from port B and send it to port A; in addition data from PCL is sent out to the PCU Use port addresses 300h – 303h for the 8255 chip Control Word: The control word should be b = 83h

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 9 Program B8255 EQU 300h CNTL EQU 83h MOV DX,B MOV AL,CNTL OUT DX,AL MOV DX,B IN AL,DX MOV DX,B8255 OUT DX,AL MOV DX, IN AL,DX AND AL,0Fh MOV CL,4 ROL AL,CL OUT DX,AL

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 10 Example Assume 8255 has a base address 300h Write a program to toggle all bits of port A continuously with a ¼ sec. Delay Use int 16h to exit if there is a key press MOV DX,303h MOV AL,80h OUT DX,AL AGAIN: MOV DX,300h MOV AL,55h OUT DX,AL CALL QSDELAY MOV AL,0AAh OUT DX,AL

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 11 Example Contd CALL QSDELAY MOV AH,01 INT 16h JZ AGAIN MOV AH,4Ch INT 21h ; to create a processor independent delay IBM made PB4 of port 61h to toggle very ; microsec. (for 286 and higher processors) QSDELAY PROC NEAR MOV CX,16572 ;16572* microsec = ¼ s PUSH AX W1: IN AL,61h AND AL, b CMP AL,AH JE W1 MOV AH,AL LOOP W1 POP AX RET QSDELAY ENDP

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 12 Mode 1: I/O with Handshaking Capability Handshaking refers to the process of communicating back and forth between two intelligent devices Example: Process of communicating with a printer – a byte of data is presented to the data bus of the printer – the printer is informed of the presence of a byte of data to be printed by activating its strobe signal – whenever the printer receives the data it informs the sender by activating an output signal called ACK – the ACK signal initiates the process of providing another byte of data to the printer 8255 in mode 1 is equipped with resources to handle handshaking signals

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 13

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 14

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 15

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 16

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 17

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 18

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 19

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 20

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 21

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 22

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 23

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 24

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 25

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 26

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 27

Chapter 8 Programable Interface Chips Principles of Microcomputers 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 2014年12月10日 28