MC68HC901P MOTOROLA [Motorola, Inc], MC68HC901P Datasheet - Page 47

no-image

MC68HC901P

Manufacturer Part Number
MC68HC901P
Description
Multi-Function Peripheral
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
Universal Synchronous/Asynchronous Receiver-Transmitter
PE — Parity Enable
E/O — Even/Odd Parity
Bit 0 — Reserved by Motorola
This bit is reserved and returns a zero when read.
7.1.4 USART Data Register (UDR)
This register is used to either provide the current data word in the receiver buffer or to
provide data to the transmitter buffer.
D7-D0 — Data
7.2 RECEIVER
As data is received on the serial input line (SI), it is clocked into an internal 8-bit shift register
until the specified number of data bits have been assembled. The character will then be
transferred to the receive buffer, assuming that the last word in the receive buffer has been
read. This transfer will set the buffer full bit in the receiver status register (RSR) and produce
a buffer full interrupt to the processor, assuming this interrupt has been enabled.
Reading the receive buffer satisfies the buffer full condition and allows a new data word to
be transferred to the receive buffer when it is assembled. The receive buffer is accessed by
reading the USART data register (UDR). The UDR is simply an 8-bit data register used when
transferring data between the MFP and the CPU.
Each time a word is transferred to the receive buffer, its status information is latched into the
receiver status register (RSR). The RSR is not updated again until the data word in the
receive buffer has been read. When a buffer full condition exists, the RSR should always be
read before the receive buffer (UDR) to maintain the correct correspondence between data
and flags. Otherwise, it is possible that after reading the UDR and prior to reading the RSR,
a new word could be received and transferred to the receive buffer. Its associated flags
would be latched into the RSR, writing over the flags for the previous data word. Thus, when
7-4
UDR REGISTER
RESET
FIELD
ADDR
BIT
1 = Parity checked by receiver and parity calculated and inserted during data
0 = No parity check and no parity bit computed for transmission.
1 = Even parity is selected.
0 = Odd parity is selected.
0 = Cleared.
1 = Set.
transmission.
D7
7
0
D6
6
0
MC68HC901 USER’S MANUAL
D5
5
0
D4
4
0
$2F
D3
3
0
D2
2
0
D1
1
0
MOTOROLA
D0
0
0

Related parts for MC68HC901P