This preview shows page 1. Sign up to view the full content.
Unformatted text preview: ; odd parity, 8 bits data, 1 stop bit OUT LINEC, AL MOV AL, 0 ; disable FIFO OUT FIFOC, AL 16550 serial interface Exercise 2 Write an instruction sequence to input 300 bytes by program-controlled I/O from the 16550 initialized above and store the data in buffer orange . DATA EQU 50H ; data port for input and output STATUS EQU 55H ; status port MOV DI, 0 MOV CX, 300 CKIN: IN AL, STATUS ; input from status register TEST AL, 1 ; poll DR bit JZ CKIN IN AL, DATA ; input data MOV ORANGE[DI], AL INC DI LOOP CKIN...
View Full Document
This note was uploaded on 01/25/2012 for the course EE 3750 taught by Professor Desouza during the Fall '08 term at LSU.
- Fall '08