Table 12-13. Status Register HDLC Mode (Ports E and F only)

 

Serial Port x Status Register

(SESR)

(Address = 0xCB)

 

 

 

 

(SFSR)

(Address = 0xD3)

 

 

 

 

 

Bit(s)

 

Value

 

Description (HDLC mode only)

 

 

 

 

 

 

 

0

The receive data register is empty

 

7

 

 

 

 

 

 

1

There is a byte in the receive buffer. The serial port will request an interrupt

 

 

 

 

while this bit is set. The interrupt is cleared when the receive buffer is empty.

 

 

 

 

 

 

 

 

 

 

00

The byte in the receive buffer is data.

 

 

 

 

 

6,4

 

01

The byte in the receive buffer was followed by an Abort.

 

 

 

 

 

 

10

The byte in the receive buffer is the last in the frame, with valid CRC.

 

 

 

 

 

 

 

 

11

The byte in the receive buffer is the last in the frame, with a CRC error.

 

 

 

 

 

5

 

0

The receive buffer was not overrun.

 

 

 

 

 

 

 

1

The receive buffer was overrun. This bit is cleared by reading the receive buffer.

 

 

 

 

 

 

 

 

 

0

The transmit buffer is empty.

 

 

 

 

 

3

 

 

The transmit buffer is not empty. The serial port will request an interrupt when

 

1

the transmitter takes a byte from the transmit buffer, unless the byte is marked as

 

 

 

 

the last in the frame. Transmit interrupts are cleared when the transmit buffer is

 

 

 

 

 

 

written, or any value (which will be ignored) is written to this register.

 

 

 

 

 

 

 

00

Transmit interrupt due to buffer empty condition.

 

 

 

 

 

 

 

 

Transmitter finished sending CRC. An interrupt is generated at the end of CRC

 

 

01

transmission. Data written in response to this interrupt will cause only one Flag

2:1

 

 

to be transmitted between frames, and no interrupt will be generated by this Flag.

 

 

 

 

 

 

10

Transmitter finished sending an Abort. An interrupt is generated at the end of an

 

 

 

 

Abort transmission.

 

 

 

 

 

 

 

 

 

 

 

 

 

11

The transmitter finished sending a closing Flag. Data written in response to this

 

 

interrupt will cause at least two Flags to be transmitted between frames.

 

 

 

 

 

 

 

 

0

 

0

The byte in the receiver buffer is 8 bits.

 

 

 

 

 

 

 

1

The byte in the receiver buffer is less than 8 bits.

 

 

 

 

 

 

 

 

 

 

172

Rabbit 3000 Microprocessor

Page 181
Image 181
Jameco Electronics 2000, 3000 manual Status Register Hdlc Mode Ports E and F only, Bits Value Description Hdlc mode only