beautypg.com

Interrupt generation, Channel modes – Rainbow Electronics AT75C310 User Manual

Page 59

background image

AT75C310

59

Interrupt Generation

Each status bit in US_CSR has a corresponding bit in
US_IER (Interrupt Enable) and US_IDR (Interrupt Disable)
which controls the generation of interrupts by asserting the
USART interrupt line connected to the AIC. US_IMR (Inter-
rupt Mask Register) indicates the status of the correspond-
ing bits.

When a bit is set in US_CSR and the same bit is set in
US_IMR, the interrupt line is asserted.

Channel Modes

The USART can be programmed to operate in three differ-
ent test modes, using the field CHMODE in US_MR.

Automatic echo mode allows bit-by-bit re-transmission.
When a bit is received on the RXD line, it is sent to the TXD
line. Programming the transmitter has no effect.

Local loopback mode allows the transmitted characters to
be received. TXD and RXD pins are not used and the out-
put of the transmitter is internally connected to the input of
the receiver. The RXD pin level has no effect and the TXD
pin is held high as in idle state.

Remote loopback mode directly connects the RXD pin to
the TXD pin. The transmitter and the receiver are disabled
and have no effect. This mode allows bit-by-bit re-transmis-
sion.

Figure 15. Channel Modes

Receiver

Transmitter

Disabled

RXD

TXD

Receiver

Transmitter

Disabled

RXD

TXD

V

DD

Disabled

Receiver

Transmitter

Disabled

RXD

TXD

Disabled

Automatic Echo

Local Loopback

Remote Loopback

V

DD