Serial port 0 control (scon0), Serial data buffer 0 (sbuf0) – Maxim Integrated High-Speed Microcontroller Users Guide: Network Microcontroller Supplement User Manual

Page 38

Advertising
background image

High-Speed Microcontroller User’s

Guide: Network Microcontroller

Supplement

38

Serial Port 0 Control (SCON0)

Serial Data Buffer 0 (SBUF0)

7

6

5

4

3

2

1

0

SFR 98h

SM0/FE_0

SM1_0

SM2_0

REN_0

TB8_0

RB8_0

TI_0

RI_0

RW-0

RW-0

RW-0

RW-0

RW-0

RW-0

RW-0

RW-0

R = Unrestricted read, W = Unrestricted write, -n = Value after reset

SM0/FE_0
Bit 7

SM1_0
Bit 6

SM2_0
Bit 5

REN_0
Bit 4

TB8_0
Bit 3

RB8_0
Bit 2

TI_0
Bit 1

RI_0
Bit 0

Serial port 0 mode bit 0. (When SMOD0 is logic 0.) When SMOD0 is logic 1, it is the framing error flag
that is set upon detection of an invalid stop bit and must be cleared by software. When SMOD0 is set,

modification of this bit has no effect on the serial mode setting.

Serial port 0 mode bit 1.

Serial port 0 mode bit 2. Setting of this bit in mode 1 ignores reception if an invalid stop bit is
detected. Setting this bit in mode 2 or 3 enables multiprocessor communications. This prevents the RI_0

bit from being set, and interrupt being asserted, if the 9th bit received is 0.

Receiver enable. This bit enable/disables the serial port 0 receiver shift register.

0 = Serial port 0 reception disabled.

1 = Serial port 0 receiver enabled (modes 1, 2, and 3). Initiate synchronous reception (mode 0).

9th transmission bit state. This bit defines the state of the 9th transmission bit in serial port 0 modes
2 and 3.

9th received bit state. This bit identifies that state of the 9th reception bit of received data in ser-
ial port 0 modes 2 and 3. When SM2_0 = 0, RB8_0 is the state of the stop bit in mode 1. RB8_0 is not

used in mode 0.

Transmitter interrupt flag. This bit indicates that data in the serial port 0 buffer has been completely
shifted out. In serial port mode 0, TI_0 is set at the end of the 8th data bit. In all other modes, this bit is

set at the end of the last data bit. This bit must be cleared by software.

Receiver interrupt flag. This bit indicates that a byte of data has been received in the serial port 0
buffer. In serial port mode 0, RI_0 is set at the end of the 8th bit. In serial port mode 1, RI_0 is set after

the last sample of the incoming stop bit subject to the state of SM2_0. In modes 2 and 3, RI_0 is set after

the last sample of RB8_0. This bit must be cleared by software.

MODE

SM2

SM1

SM0

FUNCTION

LENGTH

PERIOD

0

0

0

0

Synchronous

8 bits

12 t

CLK

0

1

0

0

Synchronous

8 bits

4 t

CLK

1

x

1

0

Asynchronous

10 bits

Timer 1 or 2

2

0

0

1

Asynchronous

11 bits

64 t

CLK

(SMOD_0 = 0)

2

0

0

1

Asynchronous

11 bits

32 t

CLK

(SMOD_0 = 1)

2

1

0

1

Asynchronous (MP)

11 bits

64 t

CLK

(SMOD_0 = 0)

2

1

0

1

Asynchronous (MP)

11 bits

34 t

CLK

(SMOD_0 = 1)

3

0

1

1

Asynchronous

11 bits

Timer 1 or 2

3

1

1

1

Asynchronous (MP)

11 bits

Timer 1 or 2

7

6

5

4

3

2

1

0

SFR 99h

SBUF0.7

SBUF0.6

SBUF0.5

SBUF0.4

SBUF0.3

SBUF0.2

SBUF0.1

SBUF0.0

RW-0

RW-0

RW-0

RW-0

RW-0

RW-0

RW-0

RW-0

R = Unrestricted read, W = Unrestricted write, -n = Value after reset

SBUF0.7–0
Bits 7–0

Serial data buffer 0. Data for serial port 0 is read from or written to this location. The serial transmit and
receive buffers are separate registers, but both are addressed at this location.

Maxim Integrated

Advertising