{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

16550_exercises-soln

16550_exercises-soln - odd parity 8 bits data 1 stop bit...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
16550 serial interface — Exercise 1 Write an instruction sequence to initialize a 16550 serial interface to operate as follows. Baud rate divisor = 60; data - 8 bits, odd parity, 1 stop bit; disable FIFO queues; low port address = 50H. DLL EQU 50H ; divisor latch low DLH EQU 51H ; divisor latch high LINEC EQU 53H ; line control FIFOC EQU 52H ; FIFO control MOV AL, 10000000B ; set up access to divisor latch OUT LINEC, AL MOV AX, 60 ; divisor value OUT DLL, AL ; lower divisor latch MOV AL, AH OUT DLH, AL ; upper divisor latch MOV AL, 00001011B
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern