03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SERIAL COMMUNICATIONS UNIT<br />

The serial port receives BREAK characters of two different lengths. If a BREAK character longer<br />

than M bit-times is detected, the DBRK0 bit in SxSTS is set. If the BREAK character is longer<br />

than 2M+3 bit-times, DBRK1 in SxSTS is set. M is equal to the total number of bits in a frame.<br />

For example, M is equal to 11 (decimal) in Mode 3.<br />

Register Name:<br />

Register Mnemonic:<br />

Register Function:<br />

Serial Status Register<br />

SxSTS<br />

Indicates the status of the serial port.<br />

15 0<br />

D<br />

B<br />

R<br />

K<br />

1<br />

D<br />

B<br />

R<br />

K<br />

0<br />

R<br />

B<br />

8/<br />

P<br />

E<br />

R<br />

I<br />

T<br />

I<br />

F<br />

E<br />

T<br />

X<br />

E<br />

O<br />

E<br />

C<br />

T<br />

S<br />

A1278-0A<br />

Bit<br />

Mnemonic<br />

Bit Name<br />

Reset<br />

State<br />

Function<br />

DBRK1 Detect Break 1 0 Set when a break longer than 2M+3 bits occurs.<br />

DBRK0 Detect Break 0 0 Set when a break longer than M bits occurs.<br />

RB8/PE<br />

RI<br />

TI<br />

Received<br />

Bit8/Parity<br />

Error<br />

Receive<br />

Interrupt<br />

Transmit<br />

Interrupt<br />

0 Contains the 9th received data bit in modes 2<br />

and 3. PE is set when a parity error occurs. PE<br />

is valid only when parity is enabled in Mode 1,<br />

2 or 3.<br />

0 RI is set when a character has been received<br />

and placed in SxRBUF. Note that RI need not<br />

be explicitly cleared to receive more characters.<br />

Writing a one to this bit will not cause an<br />

interrupt.<br />

0 TI is set when a character has finished transmitting.<br />

TI determines when one more<br />

character can be transmitted. Writing a one to<br />

this bit will not cause an interrupt.<br />

NOTE:<br />

Reserved register bits are shown with gray shading. Reserved bits must be written<br />

to a logic zero to ensure compatibility with future Intel products.<br />

Figure 11-14. Serial Port Status Register (SxSTS)<br />

11-16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!