HW4_S - 0306-250 Assembly Language Programming Fall 2009...

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

View Full Document Right Arrow Icon
Page 1 of 2 0306-250 Assembly Language Programming Fall 2009 Homework Four Solution 1. Describe the details of initializing the SCI and ECT (timer) to generate interrupt requests. Be sure to describe all bits of the control registers that must be set and/or cleared and why each bit/field must have the value that you indicate. SCI: To initialize the SCI to generate interrupts as used in lab for serial I/O, bits 5 (RIE) and 7 (TIE) in SCI Control Register 2 (SCICR2) must be set. Setting bit 7 (i.e., making it 1 ) enables transmit interrupts, and setting bit 5 enables receive interrupts. Receive interrupts occur when a character has been received, which is when the RDRF flag is set. Transmit interrupts occur when the SCI is ready to transmit a character, which is when the TDRE is set. (Note there are two other types of SCI interrupts not used in lab.) ECT: To initialize the ECT to generate interrupts as used in lab for timer output compare, it is necessary both to initialize the ECT Timer Input Capture/Output Compare Register (TIOS) with a 1 in bit 7 (IOS7) to set channel 7 for output
Image of page 1

Info iconThis 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