Lecture 14 Basic I/O Interface Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.

Slides:



Advertisements
Similar presentations
Programming 8086 – Part IV Stacks, Macros
Advertisements

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.
Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU
Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU
Digital Interfacing.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#3) By Dr. Syed Noman.
EDUSAT SESSION FOR ADVANCED MICROPROCESSOR (EC54) Date: Session VII Topic: Programming Examples Faculty: Anita Kanavalli MSRIT.
ACOE2511 Assembly Language Arithmetic and Logic Instructions.
80x86 Instruction Set Dr. Qiang Lin.
Flow Diagram: Push flags, CS, IP Pop IP,CS,flags Push AX,BX,CX,DX,ES,DS,SI,DI,BP POP BP,DI,SI,DS,ES,DX,CX,BX,AX.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 3 Addressing Modes Barry B. Brey.
Data Movement Instructions
Lecture 2 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Gursharan Singh Tatla 21-Nov-20101www.eazynotes.com.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 13 Direct Memory Access and DMA-
Kip Irvine: Assembly Language for Intel-Based Computers Overview Stack Operations (PUSH and POP) Procedures Procedure Parameters Software Interrupts MS-DOS.
Kip Irvine: Assembly Language for Intel-Based Computers
Riistvarapõhine programmeerimine Loeng 7 Protseduurid Katkestused Tsüklid.
Micro-Computer Applications: Procedures & Interrupts Dr. Eng. Amr T. Abdel-Hamid ELECT 707 Fall 2011.
Lecture 8 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Ch. 7 Logic, Shift and Rotate instr.
Lecture 13 Basic I/O Interface
Stack Operations LIFO structure (last-in,first-out) –The last value put into the stack is the first value taken out Runtime stack –A memory array that.
Lecture 4 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Lecture 5 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Strings, Procedures and Macros
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#9) By Dr. Syed Noman.
Writing and using procedures
Lecture /8088 Hardware Specifications and Memory Interface Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Lab 6 Stack.
Lecture 21. _getproc proc near pushf ;Secure flag register contents push di ;== Determine whether model came before or after === xor ax,ax ;Set.
10H Interrupt. Option 0H – Sets video mode. Registers used: – AH = 0H – AL = Video Mode. 3H - CGA Color text of 80X25 7H - Monochrome text of 80X25 Ex:
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.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Lecture 9 Design of the Computer Instruction Set and the CPU Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Lecture 6 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
MICROPROCESSOR, PROGRAMMING & INTERFACING Tutorial 4 – Module 4.
BITS Pilani Pilani Campus Pawan Sharma Lecture EEE /INSTR/CS F241 ES C263 Microprocessor Programming and Interfacing.
BITS Pilani Pilani Campus Pawan Sharma Lecture /12/ EEE /INSTR/CS F241 ES C263 Microprocessor Programming and Interfacing.
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
Intel MP Organization. Registers - storage locations found inside the processor for temporary storage of data 1- Data Registers (16-bit) AX, BX, CX, DX.
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
DAC Interfacing V ref CPU D Q DAC D Q V out Clock Address bus Address
Presentation on Real Mode Memory Addressing
Microprocessor Systems Design I
Instruksi Set Prosesor 8088
Microprocessor and Assembly Language
Chapter 4 Data Movement Instructions
Lecture 4 Control Flow Structures (LOOPS)
EEM336 Microprocessors Laboratory Orientation
INSTRUCTION SET.
Assembly Language Programming Part 2
ADDRESSING MODES.
(The Stack and Procedures)
Chapter 3 Addressing Modes
اصول اساسی برنامه نویسی به زبان اسمبلی
Stack and Subroutines Module M17.1 Section 11.2.
Programming 8086 – Part IV Stacks, Macros
ارايه دهنده : حسن عسكرزاده
Chapter 4 Data Movement Instructions
8086 Registers Module M14.2 Sections 9.2, 10.1.
Microprocessor Lab CSL1543 0:0:2
(The Stack and Procedures)
Microprocessor Lab CSL1543 0:0:2
Morgan Kaufmann Publishers Computer Organization and Assembly Language
UNIT-II Assembly Language Programs Involving Logical
CNET 315 Microprocessor & Assembly Language
(The Stack and Procedures)
CS-401 Computer Architecture and Assembly Language Programming
UNIT-II ADDRESSING MODES & Instruction set
Presentation transcript:

Lecture 14 Basic I/O Interface Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU

7-segment LED Display 00H – 03H are the I/O ports Port A Port B Port C Command Register MEM 1.For 8 (eight) times 1.Send data through port A 2.Select a segment through port B OUT PORT, DATA OUT DX, AL

7-segment LED Display 00H – 03H are the I/O ports Port A Port B Port C Command Register MEM MOV BX, 8 ; count MOV AH, 7FH ; selection MOV SI, OFFSET MEM-1 MOV DX, 01H ; port B DISP1: MOV AL, AH OUT DX, AL DEC DX MOV AL, [BX+SI] OUT DX, AL CALL DELAY ROR AH, 1 INC DX DEC BX JNZ DISP SI 1.For 8 (eight) times 1.Send data through port A 2.Select a segment through port B

7-segment LED Display MOV BX, 8 ; count MOV AH, 7FH ; selection MOV SI, OFFSET MEM-1 MOV DX, 01H ; port B ROR AH, 1 INC DX DEC BX JNZ DISP1 DISP1: MOV AL, AH OUT DX, AL DEC DX MOV AL, [BX+SI] OUT DX, AL CALL DELAY DISP PROC NEAR PUSHF PUSH AX PUSH BX PUSH DX PUSH SI POP SI POP DX POP BX POP AX POPF RET DISP ENDP

Stepper Motor Interfaced to the 82C = 3H 0110 = 6H 1100 = CH 1001 = 9H

Stepper Motor Interfaced to the 82C55 If CX > 8000H then spin right hand direction else spin left hand direction Steeper Motor

If CX > 8000H then spin right hand direction else spin left hand direction 33H / 66H / CCH / 99H = 33H = 66H = CCH = 99H

References Chapter 10.3 The Intel Microprocessors – by Barry B. Brey