beautypg.com

Texas Instruments TMS320C2XX User Manual

Page 377

background image

Controlling and Resetting the Port

9-9

Synchronous Serial Port

Table 9–2. Run and Emulation Modes

БББ

БББ

FREE

ББББ

ББББ

SOFT

БББББББ

БББББББ

Run/Emulation Mode

БББ

БББ

0

ББББ

ББББ

0

БББББББ

БББББББ

Immediate stop

БББ

Б

Б

Б

БББ

0

ББББ

Б

ББ

Б

ББББ

1

БББББББ

Б

БББББ

Б

БББББББ

Stop after completion
of word

БББ

БББ

1

ББББ

ББББ

0

БББББББ

БББББББ

Free run

БББ

Б

Б

Б

БББ

1

ББББ

Б

ББ

Б

ББББ

1

БББББББ

Б

БББББ

Б

БББББББ

Free run

Note:

If an option besides immediate stop is chosen for the receiver, an overflow
error is possible. The default mode (selected at reset) is

immediate stop.

Bit 13

TCOMP — Transmission complete. This bit is cleared to 0 when all data
in the transmit FIFO buffer has been transmitted (the buffer is empty) and is
set to 1 when new data is written to the transmit FIFO buffer (the buffer is not
empty).

Bit 12

RFNE — Receive FIFO buffer not empty bit. This bit is 1 when the receive
FIFO buffer contains data and is cleared when the buffer empties.

Bits 11–10

FT1, FT0 — FIFO transmit-interrupt bits. The values you write to FT0 and
FT1 set an interrupt trigger condition based on the contents of the transmit
FIFO buffer. When this condition is met, a transmit interrupt (XINT) is gener-
ated and the data can be transferred out to the FIFO buffer using the OUT
instruction. Table 9–3 summarizes the possible trigger conditions.

Table 9–3. Controlling Transmit Interrupt Generation by Writing to Bits FT1 and FT0

БББББ

БББББ

Select Bits

ББ

ББ

ББББББББББББББББББ

ББББББББББББББББББ

БББ

БББ

FT1

БББ

БББ

FT0

ББ

ББ

ББББББББББББББББББ

ББББББББББББББББББ

Generate XINT when...

БББ

Б

Б

Б

БББ

0

БББ

Б

Б

Б

БББ

0

ББ

ББ

ББ

ББББББББББББББББББ

Б

ББББББББББББББББ

Б

ББББББББББББББББББ

Transmit FIFO buffer can accept one or more words;
XINT occurs repeatedly until the buffer is full.

БББ

Б

Б

Б

БББ

0

БББ

Б

Б

Б

БББ

1

ББ

ББ

ББ

ББББББББББББББББББ

Б

ББББББББББББББББ

Б

ББББББББББББББББББ

Transmit FIFO buffer can accept two or more words;
XINT occurs repeatedly until three words are written.

БББ

Б

Б

Б

БББ

1

БББ

Б

Б

Б

БББ

0

ББ

ББ

ББ

ББББББББББББББББББ

Б

ББББББББББББББББ

Б

ББББББББББББББББББ

Transmit FIFO buffer can accept three or four words;
XINT occurs repeatedly until two words are written.

БББ

Б

Б

Б

БББ

1

БББ

Б

Б

Б

БББ

1

ББ

ББ

ББ

ББББББББББББББББББ

Б

ББББББББББББББББ

Б

ББББББББББББББББББ

Transmit FIFO buffer is empty (can accept 4 words);
XINT occurs repeatedly until one word is written.