Jameco Electronics 2000 ユーザーズマニュアル

ページ / 349
172
Rabbit 3000 Microprocessor
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)
7
0
The receive data register is empty
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.
6,4
00
The byte in the receive buffer is data.
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.
3
0
The transmit buffer is empty.
1
The transmit buffer is not empty. The serial port will request an interrupt when 
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.
2:1
00
Transmit interrupt due to buffer empty condition.
01
Transmitter finished sending CRC. An interrupt is generated at the end of CRC 
transmission. Data written in response to this interrupt will cause only one Flag 
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.