![background image](http://html2.mh-extra.com/html/rabbit/2000/2000_user-manual_3110256132.webp)
126
Rabbit 2000 Microprocessor
Table 12-4 lists the synchronous serial port signals.
To enable the clocked serial mode, a code must be in bits (3,2) of the control register,
enabling the clocked serial mode with either an internal clock or an external clock. The
transition between the external and the internal clock should be performed with care. Nor-
mally a pullup resistor is needed on the clock line to prevent spurious clocks while neither
party is driving the clock.
In clocked serial mode the shift register and the data register work in the same fashion as
for asynchronous communications. However, to initiate sending or receiving, a code must
be stored in bits (7,6) of the control register for each byte sent or received. One code spec-
ifies sending a byte, a different code specifies receiving a byte. The effect of these codes is
different, depending on whether the mode is internal clock or external clock.
To transmit in internal clock mode, the user must first load the data register (which must
be empty) and then store the send code. When the shift register finishes sending the cur-
rent character, if any, the data register will be loaded into the shift register and transmitted
by an 8-clock burst. One character can be in the process of transmitting while another
character is waiting in the data register tagged with the send code. The send code is effec-
tively double-buffered.
To receive a character in internal clock mode, the receive shift register should be idle. The
user then stores the receive code in the control register. A burst of 8 clocks will be gener-
ated and the sender must detect the clocks and shift output data to the data line on the fall-
ing edge of each clock. The receiver will sample the data on the rising edge of each clock.
The receive mode cannot double-buffer characters when using the internal clock. The shift
register must be idle before another character receive can be initiated. However, the inter-
rupt request and character ready takes place on the rising edge of the last clock pulse. If
the next receive code is stored before the natural location of the next falling edge, another
receive will be initiated without pausing the clock. To do this, the interrupt has to be ser-
viced within 1/2 clock.
To transmit each byte in external clock mode, the user must load the data register and then
store the send code. When the shift register is idle and the receiver provides a clock burst,
the data bits are transferred to the shift register and are shifted out. Once the transfer is
Table 12-4. Synchronous Serial Port Signals
Rabbit
Signal Names
Pin Function
CLKA or CLKB
Serial Clock
TxA or TxB on Parallel Port
CATxA or ATxB on Parallel Port D
Data Transmit
RxA or RxB on Parallel Port C
ARxA or ARxB on Parallel Port D
Data Receive
Summary of Contents for 2000
Page 1: ...Rabbit 2000 Microprocessor User s Manual 019 0069 041018 M...
Page 12: ...6 Rabbit 2000 Microprocessor...
Page 46: ...40 Rabbit 2000 Microprocessor...
Page 54: ...48 Rabbit 2000 Microprocessor...
Page 76: ...70 Rabbit 2000 Microprocessor...
Page 96: ...90 Rabbit 2000 Microprocessor...
Page 142: ...136 Rabbit 2000 Microprocessor...
Page 154: ...148 Rabbit 2000 Microprocessor...
Page 170: ...164 Rabbit 2000 Microprocessor...
Page 174: ...168 Rabbit 2000 Microprocessor...
Page 180: ...174 Rabbit 2000 Microprocessor...
Page 202: ...196 Rabbit 2000 Microprocessor...
Page 206: ...200 Rabbit 2000 Microprocessor...
Page 226: ......
Page 230: ...224 Rabbit 2000 Microprocessor...