I/o status register (iosr) – Texas Instruments TMS320C2XX User Manual

Page 408

Advertising
background image

Controlling and Resetting the Port

10-10

10.3.2 I/O Status Register (IOSR)

The IOSR returns the status of the asynchronous serial port and of I/O pins
IO0–IO3. The IOSR is a 16-bit, on-chip register mapped to address FFF6h in
I/O space. Figure 10–4 shows the fields in the IOSR, and bit descriptions fol-
low the figure.

Figure 10–4. I/O Status Register (IOSR) — I/O-Space Address FFF6h

Б

Б

БББББ

БББББ

15

ББББ

ББББ

14

БББББ

БББББ

13

БББББ

БББББ

12

ББББ

ББББ

11

БББББ

БББББ

10

ББББ

ББББ

9

БББББ

БББББ

8

Б

Б

Б

Б

ЙЙЙЙЙ

ЙЙЙЙЙ

Reserved

ББББ

ББББ

ADC

БББББ

БББББ

BI

БББББ

БББББ

TEMT

ББББ

ББББ

THRE

БББББ

БББББ

FE

ББББ

ББББ

OE

БББББ

БББББ

DR

Б

Б

Б

Б

БББББ

БББББ

0

ББББ

ББББ

R/W1C–0

БББББ

БББББ

R/W1C–0

БББББ

БББББ

R–1

ББББ

ББББ

R–1

БББББ

БББББ

R/W1C–0

ББББ

ББББ

R/W1C–0

БББББ

БББББ

R–0

Б

Б

Б

Б

БББББ

БББББ

7

ББББ

ББББ

6

БББББ

БББББ

5

БББББ

БББББ

4

ББББ

ББББ

3

БББББ

БББББ

2

ББББ

ББББ

1

БББББ

БББББ

0

Б

Б

Б

Б

БББББ

БББББ

DIO3

ББББ

ББББ

DIO2

БББББ

БББББ

DIO1

БББББ

БББББ

DIO0

ББББ

ББББ

IO3

БББББ

БББББ

IO2

ББББ

ББББ

IO1

БББББ

БББББ

IO0

Б

Б

Б

Б

БББББ

БББББ

R/W1C–x

ББББ

ББББ

R/W1C–x

БББББ

БББББ

R/W1C–x

БББББ

БББББ

R/W1C–x

ББББ

ББББ

R/W†–x

БББББ

БББББ

R/W†–x

ББББ

ББББ

R/W†–x

БББББ

БББББ

R/W†–x

Б

Б

Б

Б

Б

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

Б

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

Б

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

Note:

0 = Always read as 0; R=Read access; W1C=Write 1 to this bit to clear it to 0; W = Write access;
value following dash (–) is value after reset (x means value not affected by reset).

† This bit can be written to only when it is configured as an output by the corresponding CIO bit in the ASPCR.

Б

Б

Б

Bit 15

Reserved. Always read as 0.

Bit 14

ADC —

A detect complete bit. If the CAD bit of the ASPCR is 1 and the

character

A or a is received in the ADTR, ADC is set to 1. The character A

or

a remains in the ADTR after it has been detected. To avoid an overrun er-

ror when the next character arrives, the ADTR should be read immediately
after ADC is set.

ADC = 0

A or a not has not been detected. No receive interrupt
(TXRXINT) will be generated.

ADC = 1

A or a has been detected. If the CAD bit of the ASPCR is also
1, a receive interrupt (TXRXINT) will be generated, regardless
of the values of the DIM, TIM, and RIM bits of the ASPCR. For
as long as ADC = 1 and CAD = 1, a receive interrupt will occur.

Bit 13

BI — Break interrupt indicator. BI = 1 indicates that a break has been de-
tected on the RX pin. Write a 1 to this bit to clear it to 0. BI is also cleared to
0 at reset.

A break on the RX pin also generates an interrupt (TXRXINT).

Bit 12

TEMT — Transmit empty indicator. TEMT = 1 indicates whether the trans-
mit register (ADTR) and/or transmit shift register (AXSR) are full or empty.
This bit is set to 1 on reset.

TEMT = 0

The ADTR and/or AXSR are full.

TEMT = 1

The ADTR and the AXSR are empty; the ADTR is ready for a
new character to transmit.

Advertising