p89cv51rb2 NXP Semiconductors, p89cv51rb2 Datasheet - Page 37

no-image

p89cv51rb2

Manufacturer Part Number
p89cv51rb2
Description
P89cv51rb2/rc2/rd2 8-bit 80c51 5 V Low Power 64 Kb Flash Microcontroller With 1 Kb Ram, Spi, 6-clock Cpu With 6/12-clock Peripherals
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
p89cv51rb2FA
Manufacturer:
KEC
Quantity:
10 000
Part Number:
p89cv51rb2FA
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
p89cv51rb2FA,512
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
p89cv51rb2FBC,557
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
p89cv51rb2FBC557
Manufacturer:
NXP Semiconductors
Quantity:
135
NXP Semiconductors
P89CV51RB2_RC2_RD2_1
Product data sheet
6.6.9 Automatic address recognition
SM2 has no effect in Mode 0, and in Mode 1 can be used to check the validity of the stop
bit, although it is preferable to use the Framing Error flag (FE). When the UART receives
data in Mode 1 and SM2 = 1, the receive interrupt will not be activated unless a valid stop
bit is received.
Automatic address recognition is a feature which allows the UART to recognize certain
addresses in the serial bit stream by using hardware to make the comparisons. This
feature saves a great deal of software overhead by eliminating the need for the software to
examine every serial address which passes by the serial port. This feature is enabled for
the UART by setting the SM2 bit in SCON. In the 9-bit UART modes, Mode 2 and Mode 3,
the Receive Interrupt flag (RI) will be automatically set when the received byte contains
either the ‘given’ address or the ‘broadcast’ address. The 9-bit mode requires that the 9th
information bit is a 1 to indicate that the received information is an address and not data.
Using the automatic address recognition feature allows a master to selectively
communicate with one or more slaves by invoking the given slave address or addresses.
All of the slaves may be contacted by using the broadcast address. Two special function
registers are used to define the slave’s address, SADDR, and the address mask, SADEN.
SADEN is used to define which bits in the SADDR are to be used and which bits are don’t
care. The SADEN mask can be logically ANDed with the SADDR to create the given
address which the master will use for addressing each of the slaves. Use of the given
address allows multiple slaves to be recognized while excluding others.
This device uses the methods presented in
address has been received or not.
The following examples help to show the versatility of this scheme.
Fig 15. Schemes used by the UART to detect ‘given’ and ‘broadcast’ addresses when
multiprocessor communications is enabled
rx_byte(7)
rx_byte(0)
saden(7)
saden(0)
saddr(7)
saddr(0)
saddr(7)
saddr(0)
logic used by UART to detect 'given address' in received data
logic used by UART to detect 'given address' in received data
Rev. 01 — 5 October 2007
rx_byte(7)
rx_byte(0)
saden(7)
saden(0)
.
.
.
.
.
.
P89CV51RB2/RC2/RD2
Figure 15
given_address_match
broadcast_address_match
to determine if a given or broadcast
80C51 with 1 kB RAM, SPI
002aaa527
© NXP B.V. 2007. All rights reserved.
37 of 73

Related parts for p89cv51rb2