M68HC11
REFERENCE MANUAL
ASYNCHRONOUS SERIAL COMMUNICATIONS INTERFACE
MOTOROLA
9-29
the IDLE flag is inhibited.
9.4.5 Receiver Wake-Up Operation
The M68HC11 receiver logic hardware also supports a receiver wake-up function,
which is intended for systems having more than one receiver. With this function, a
transmitting device directs messages to an individual receiver or group of receivers by
passing addressing information as the initial byte(s) of each message. Receivers not
addressed activate the receiver wake-up function, which makes these receivers dor-
mant for the remainder of the unwanted message and eliminates any further software
overhead to service the remaining characters of the unwanted message.
The receiver is placed in wake-up mode by writing a one to the RWU bit in the SCCR2
register. While RWU is one, all of the receiver-related status flags (RDRF, IDLE, OR,
NF, and FE) are inhibited (cannot become set). Although RWU can be cleared by a
software write to SCCR2, to do so would be unusual. Normally, RWU is set by soft-
ware and is cleared automatically with hardware by one of the two following methods.
9.4.5.1 Idle-Line Wake Up
To use this receiver wake-up method in an actual system, a software addressing
scheme is established to allow the transmitting device(s) to direct messages to indi-
vidual receivers or groups of receivers. This addressing scheme is purely a software
device and may take any form as long as all transmitting and receiving devices are
programmed to understand the same scheme. The addressing information is usually
the first frame(s) in a message; therefore, uninterested receivers are burdened only
with these minimum addressing frames. All receivers are awake (RWU = 0) when each
message begins. As soon as a receiver determines that the message is not intended
for it, software sets the RWU bit (RWU = 1), which inhibits further flag setting until the
RxD line goes idle at the end of the message. As soon as an idle line is detected by
receiver logic, hardware automatically clears the RWU bit so that the first frame of the
next message can be received. This method of receiver wake up requires a minimum
of one idle-line frame time between messages and no idle time between frames in a
message.
9.4.5.2 Address-Mark Wake Up
In this method of receiver wake up, all serial characters consist of seven (eight if M =
1) information bits and an MSB, which is used to indicate an address character (when
set to one (mark)). The first character of each message is an addressing character
(MSB is one). All receivers in the system evaluate this character to determine if the
remainder of the message is directed toward this particular receiver. As soon as a re-
ceiver determines that a message is not intended for it, the receiver activates the RWU
function by setting (with a software write) the RWU bit. Since setting RWU inhibits re-
ceiver-related flags, there is no further software overhead for the rest of this message.
When the next message begins, its first character will have its MSB set, which auto-
matically clears the RWU bit and enables normal character reception. The first char-
acter whose MSB is set will also be the first character to be received after wake up
because RWU gets cleared before the stop bit for that frame is serially received. This