eee410_lecture17 - EEE 410 Microprocessors I Spring 04/05...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 EEE 410 – Microprocessors I Spring 04/05 – Lecture Notes # 17 Outline of the Lecture I/O Programming in Assembly Language P ROGRAMMING THE PPI (M ODE 0) Ex: Configure the ports of 8255 (PPI) as follows: port A=input, port B=output, port CH=output, port CL=input (CL=Lower 4 bits of Port C, CH (CU) =Upper 4 bits of Port C) (Assume that the 8255 PPI is located at 300H) Soln: Control register: A CH B CL 1 0 0 0 1 : input 0 : output A CH B CL 1 0 0 1 0 0 0 1 ;This program initializes the PPI located at 300H as follows: ; port A : input ; port B : output ; port CH : output ; port CL : input .MODEL SMALL .CODE MAIN: MOV AL,10010001B MOV DX,303H ;If PPI is at 300H, then Port A=300H, OUT DX,AL ;Port B =301, Port C=302 and Control reg:303H M O V A H , 4 C H INT 21H E N D M A I N
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 I/O I NTERFACE A PPLICATIONS Application 1: Stepper Motor Control Stepper motors are used for position control applications, such as for the control of the disk drives and in robotics. The most common stepper motors have four stator windings that are paired with a
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/26/2011 for the course EEE 410 taught by Professor Hasandemirel during the Spring '10 term at Eastern Mediterranean University.

Page1 / 5

eee410_lecture17 - EEE 410 Microprocessors I Spring 04/05...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online