Framing Error; Break Detect; Brgcon Register; Baud Rate Generations For Uart (Modes 1, 3) - Philips P89LPC902 User Manual

8-bit microcontrollers with accelerated two-clock 80c51 core 1kb 3v low-power byte-eraseable flash with 128 byte ram
Table of Contents

Advertisement

Philips Semiconductors
UART (P89LPC903)
BRGCON
Address: BDh
Not bit addressable
Reset Source(s): Any reset
Reset Value: xxxxxx00B
BIT
SYMBOL
BRGCON.7-2
-
BRGCON.1
SBRGS
BRGCON.0
BRGEN
Timer 1 Overflow
(PCLK-based)
Baud Rate Generator
(CCLK-based)

Framing Error

A Framing error occurs when the stop bit is sensed as a logic '0'. A Framing error is reported in the status register (SSTAT). In
addition, if SMOD0 (PCON.6) is 1, framing errors can be made available in SCON.7. If SMOD0 is 0, SCON.7 is SM0. It is
recommended that SM0 and SM1 (SCON.7-6) are programmed when SMOD0 is '0'.

Break Detect

A break is detected when any 11 consecutive bits are sensed low. A break detect is reported in the status register (SSTAT).
Since a break condition also satisfies the requirements for a framing error, a break condition will also result in reporting a framing
error. Once a break condition has been detected, the UART will go into an idle state and remain in this idle state until a stop bit
has been received. The break detect can be used to reset the device by setting the EBRR bit (AUXR1.6).
A break detect reset will force the high byte of the program counter to be equal to the Boot Vector contents and the low byte
cleared to 00h. The first instruction will be fetched from this address.
2003 Dec 8
7
6
-
-
FUNCTION
Reserved for future use. Should not be set to 1 by user programs.
Select Baud Rate Generator as the source for baud rates to UART in modes 1 & 3 (see
Table for details)
Baud Rate Generator Enable. Enables the baud rate generator. BRGR1 and BRGR0 can
only be written when BRGEN =0.
Figure 8-1: BRGCON Register
SMOD1 = 1
÷2
SMOD1 = 0
Figure 8-2: Baud Rate Generations for UART (Modes 1, 3)
5
4
3
-
-
-
SBRGS = 0
Baud Rate Modes 1 and 3
SBRGS = 1
63
User's Manual - Preliminary -
P89LPC901/902/903
2
1
0
-
SBRGS BRGEN

Advertisement

Table of Contents
loading

This manual is also suitable for:

P89lpc903P89lpc901

Table of Contents