UART Cross Connect Interrupt 1
Overview
The purpose of the project is to transfer the "Hello World" string from UART 1 to UART 4 and to transfer the
"I hear you" string in the opposite direction. Your code must confirm that the received strings match the transmitted strings.
This project uses the same cross connect as the cross connect polling project. The sample code is in myCourses
in the Content area in Zhu_text_537-539.pdf. Also, refer to the UART slides.
Setup
Make a copy of your UART cross connect polling code and then start implementing the interrupt logic.
Requirements and Tips
Refer to the Overview. Note that you are not required to submit anything. However,
you will need this for the next phase of the cross-connect project. Use today's work session
time to implement this or at least get a good start.
- I recommend using a buffer size of 81 characters (80 plus one for end of string)
- You have a choice for starting the transmission of the string. You can just
enable the TXE interrupt after setting up your transmit buffer or pointer and have
the interrupt service routine send the first byte and all subsequent bytes until the
end of string character.
- The other choice is to send the first character manually by calling the send function and
letting the transmit interrupt code send the rest. However, make sure that the
transmit register empty bit is not causing a problem. You might break out the inside of
the send routine into a helper function.
- You will need a way to know that the transmission of the string has completed.
- Be sure to use the volatile keyword on any variables that are updated by an
interrupt service routine.
References
Rubric and Late Policy -- Not Applicable
Submission -- not applicable