{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

HW5soln-3750-F09

HW5soln-3750-F09 - EE 3750 HW 5 solutions 1 EE 3750...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
EE 3750 — HW 5 solutions 1 EE 3750 — Homework 5 solutions Fall 2009 1. Write an 8086 instruction sequence to initialize a 16550 UART (serial interface). Set data length to 6 bits, use 2 stop bits, use even parity, use a baud rate divisor of 480, disable the FIFO queues, and enable receiver and transmitter interrupts. Let the low port address of the 16550 be 60H. Clearly state any additional assumptions that you make. Note: In addition to Brey §11-5 on the 16550, pp. 475-481 in §12-4 deal with interrupts and the 16550. The two “memory FIFOs” in the Brey text example are part of the example only and are not part of the problems on this homework. DLL EQU 60H ; divisor latch low DLH EQU 61H ; divisor latch high LINEC EQU 63H ; line control FIFOC EQU 62H ; FIFO control INTEN EQU 61H ; interrupt enable MOV AL, 10000000B ; set up access to divisor latch ( 1xxxxxxx ) OUT LINEC, AL MOV AX, 480 ; divisor value OUT DLL, AL ; lower divisor latch MOV AL, AH OUT DLH, AL ; upper divisor latch MOV AL, 00011101B ; even parity, 6 bits data, 2 stop bits OUT LINEC, AL MOV AL, 0 ; disable FIFO ( xx000xx0 ) OUT FIFOC, AL MOV AL, 11B ; enable transmitter and receiver interrupts OUT INTEN, AL 2. Write an interrupt service routine for an 8086 to input a word of data from device DEV0 then store it in array yellow . Assume that word variable pointer holds the offset to which the next word is to be stored in yellow . The interrupt service routine should input only one word on each interrupt from DEV0; if DEV0 has already input 740 words, however, then the interrupt service routine should not store the input at all.
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the 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