p87lpc778 NXP Semiconductors, p87lpc778 Datasheet - Page 51

no-image

p87lpc778

Manufacturer Part Number
p87lpc778
Description
Cmos Single-chip 8-bit 80c51 Microcontroller 128-byte Data Ram, 8 Kb Otp
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
p87lpc778FDH
Manufacturer:
PHILIPS/飞利浦
Quantity:
20 000
Part Number:
p87lpc778FDH/CP3242
Manufacturer:
SAMSUNG
Quantity:
50
Part Number:
p87lpc778FDH/CP3242
Manufacturer:
PHILIPS/飞利浦
Quantity:
20 000
Philips Semiconductors
9397 750 12378
Product data
8.15.1 Mode 0
8.15.2 Mode 1
8.15.3 Mode 2
8.15.4 Mode 3
8.15.5 Serial port control register (SCON)
Serial data enters and exits through RxD. TxD outputs the shift clock. 8 bits are
transmitted or received, LSB first. The baud rate is fixed at
frequency.
10 bits are transmitted (through TxD) or received (through RxD): a start bit (logical 0),
8 data bits (LSB first), and a stop bit (logical 1). When data is received, the stop bit is
stored in RB8 in Special Function Register SCON. The baud rate is variable and is
determined by the Timer1 overflow rate.
11 bits are transmitted (through TxD) or received (through RxD): start bit (logical 0), 8
data bits (LSB first), a programmable 9th data bit, and a stop bit (logical 1). When
data is transmitted, the 9th data bit (TB8 in SCON) can be assigned the value of 0 or
1. Or, for example, the parity bit (P, in the PSW) could be moved into TB8. When data
is received, the 9th data bit goes into RB8 in Special Function Register SCON, while
the stop bit is ignored. The baud rate is programmable to either
clock frequency, as determined by the SMOD1 bit in PCON.
11 bits are transmitted (through TxD) or received (through RxD): a start bit (logical 0),
8 data bits (LSB first), a programmable 9th data bit, and a stop bit (logical 1). In fact,
Mode 3 is the same as Mode 2 in all respects except baud rate. The baud rate in
Mode 3 is variable and is determined by the Timer1 overflow rate.
In all four modes, transmission is initiated by any instruction that uses SBUF as a
destination register. Reception is initiated in Mode 0 by the condition RI = 0 and
REN = 1. Reception is initiated in the other modes by the incoming start bit if
REN = 1.
The serial port control and status register is the Special Function Register SCON,
shown in Tables
but also the 9th data bit for transmit and receive (TB8 and RB8), and the serial port
interrupt bits (TI and RI).
The Framing Error bit (FE) allows detection of missing stop bits in the received data
stream. The FE bit shares the bit position SCON.7 with the SM0 bit. Which bit
appears in SCON at any particular time is determined by the SMOD0 bit in the PCON
register. If SMOD0 = 0, SCON.7 is the SM0 bit. If SMOD0 = 1, SCON.7 is the FE bit.
Once set, the FE bit remains set until it is cleared by software. This allows detection
of framing errors for a group of characters without the need for monitoring it for every
character individually.
Table 48:
Bit addressable; Reset value: 00H
Bit
Symbol FE/SM0
SCON - Serial port control register (address 98H) bit allocation
7
48
Rev. 01 — 31 March 2004
and 49. This register contains not only the mode selection bits,
SM1
6
SM2
5
REN
4
CMOS single-chip 8-bit microcontroller
TB8
3
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
1
RB8
P87LPC778
6
2
of the CPU clock
1
16
or
1
TI
1
32
of the CPU
51 of 79
RI
0

Related parts for p87lpc778