![Rabbit Rabbit 4000 User Manual Download Page 139](http://html1.mh-extra.com/html/rabbit/rabbit-4000/rabbit-4000_user-manual_3116714139.webp)
129
16. S
ERIAL
P
ORTS
A – D
16.1 Overview
Serial Ports A, B, C, and D are identical, except for the source of the data clock and the
transmit, receive, and clock pins. Serial Port A is special because it can be used to boot-
strap the processor. Each serial port can be used in the asynchronous or the clocked serial
mode with an internal or external clock.
In the asynchronous mode, either 7 or 8 data bits can be transferred, and a parity bit and/or
an additional address (0) or long stop (1) bit can be appended as well. Parity and the
address/long stop bits are also detected when they are received. The asynchronous mode is
full-duplex, while the clocked mode can be half or full-duplex.
Both transmit and receive have one byte of buffering — a byte may be read while another
byte is being received, or the next byte to be transmitted can be loaded while the current
byte is still being transferred out. The byte is available in the buffer after the final bit is
sampled.
The status of each serial port is available in the Serial Port Status Registers (SxSR), and
contains information on whether a received byte is available, the receive buffer was over-
run, a parity error was received, and the transmit buffer is empty or busy sending a byte.
The status is updated when the final bit of a received byte is sampled, or when the final bit
of a transmitted byte is sent out. Each serial port has a separate interrupt vector that will be
requested whenever the transmit buffer is emptied or the receive buffer contains a full byte.
All four common SPI clock modes are supported, and the bit order of the data may be either
MSB or LSB first. The transmit and receive operations are under program control as well.
Summary of Contents for Rabbit 4000
Page 1: ...Rabbit 4000 Microprocessor User s Manual 019 0152 070720 H...
Page 18: ...8 Rabbit 4000 Microprocessor User s Manual...
Page 40: ...30 Rabbit 4000 Microprocessor User s Manual...
Page 74: ...64 Rabbit 4000 Microprocessor User s Manual...
Page 82: ...72 Rabbit 4000 Microprocessor User s Manual...
Page 86: ...76 Rabbit 4000 Microprocessor User s Manual...
Page 96: ...86 Rabbit 4000 Microprocessor User s Manual...
Page 182: ...172 Rabbit 4000 Microprocessor User s Manual...
Page 240: ...230 Rabbit 4000 Microprocessor User s Manual...
Page 248: ...238 Rabbit 4000 Microprocessor User s Manual...
Page 256: ...246 Rabbit 4000 Microprocessor User s Manual...
Page 310: ...300 Rabbit 4000 Microprocessor User s Manual...
Page 330: ...320 Rabbit 4000 Microprocessor User s Manual...
Page 348: ...338 Rabbit 4000 Microprocessor User s Manual...