134/317
5 - Peripherals
been received by a flag set by the interrupt service routine. Conversely, if the main program
wants to send data, it prepares the character or string to send into a buffer in memory, then
starts the transmission by enabling the transmit interrupt. This will make the interrupt mecha-
nism send the characters one at a time, an interrupt occurring each time the SCI has sent a
character. The sending is terminated eitherby exhausting a character counter or encountering
a terminator at the end of the buffer. An example of this type of handling is described in the
second application, Chapter 10.