AT89C51RD2 Atmel Corporation, AT89C51RD2 Datasheet - Page 64

no-image

AT89C51RD2

Manufacturer Part Number
AT89C51RD2
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of AT89C51RD2

Flash (kbytes)
64 Kbytes
Max. Operating Frequency
60 MHz
Cpu
8051-12C
Max I/o Pins
32
Spi
1
Uart
1
Sram (kbytes)
2
Self Program Memory
API
Operating Voltage (vcc)
2.7 to 5.5
Timers
4
Isp
UART
Watchdog
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89C51RD2
Manufacturer:
AT
Quantity:
3
Part Number:
AT89C51RD2-3CSIM
Manufacturer:
ATMEL
Quantity:
1 080
Part Number:
AT89C51RD2-CM
Manufacturer:
IR
Quantity:
11
Part Number:
AT89C51RD2-CM
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
AT89C51RD2-IM
Manufacturer:
AT
Quantity:
5
Part Number:
AT89C51RD2-IM
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
AT89C51RD2-IM
Quantity:
2 100
Part Number:
AT89C51RD2-RDTUM
Manufacturer:
MICRON
Quantity:
1 000
Part Number:
AT89C51RD2-RLRIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51RD2-RLRUM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51RD2-RLTIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51RD2-RLTUM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C51RD2-RLTUM
Manufacturer:
ATMEL
Quantity:
90
Company:
Part Number:
AT89C51RD2-RLTUM
Quantity:
4
16.2.3
16.2.4
16.2.5
64
AT89C51RD2/ED2
SPI Serial Clock (SCK)
Slave Select (SS)
Baud Rate
This signal is used to synchronize the data movement both in and out of the devices through
their MOSI and MISO lines. It is driven by the Master for eight clock cycles which allows to
exchange one Byte on the serial lines.
Each Slave peripheral is selected by one Slave Select pin (SS). This signal must stay low for any
message for a Slave. It is obvious that only one Master (SS high level) can drive the network.
The Master may select each Slave device by software through port pins
vent bus conflicts on the MISO line, only one slave should be selected at a time by the Master
for a transmission.
In a Master configuration, the SS line can be used in conjunction with the MODF flag in the SPI
Status register (SPSTA) to prevent multiple masters from driving MOSI and SCK (see Error
conditions).
A high level on the SS pin puts the MISO line of a Slave SPI in a high-impedance state.
The SS pin could be used as a general-purpose if the following conditions are met:
Note:
In Master mode, the baud rate can be selected from a baud rate generator which is controlled by
three bits in the SPCON register: SPR2, SPR1 and SPR0.The Master clock is selected from one
of seven clock rates resulting from the division of the internal clock by 2, 4, 8, 16, 32, 64 or 128.
Table 16-1
Table 16-1.
• The device is configured as a Master and the SSDIS control bit in SPCON is set. This kind of
• The Device is configured as a Slave with CPHA and SSDIS control bits set
SPR2
configuration can be found when only one Master is driving the network and there is no way
that the SS pin could be pulled low. Therefore, the MODF flag in the SPSTA will never be
set
configuration can happen when the system comprises one Master and one Slave only.
Therefore, the device should always be selected and there is no reason that the Master uses
the SS pin to select the communicating Slave device.
0
0
0
0
1
1
1
1
(1)
.
1. Clearing SSDIS control bit does not clear MODF.
2. Special care should be taken not to set SSDIS control bit when CPHA = ’0’ because in this
mode, the SS is used to start the transmission.
gives the different clock rates selected by SPR2:SPR1:SPR0.
SPR1
SPI Master Baud Rate Selection
0
0
1
1
0
0
1
1
SPR0
0
1
0
1
0
1
0
1
F
F
F
F
F
F
CLK PERIPH
F
CLK PERIPH
CLK PERIPH
CLK PERIPH
Clock Rate
CLK PERIPH
CLK PERIPH
CLK PERIPH
Don’t Use
/128
/16
/32
/64
/8
/2
/4
Baud Rate Divisor (BD)
(Figure
No BRG
(2)
128
16
32
64
. This kind of
2
4
8
16-2). To pre-
4235K–8051–05/08

Related parts for AT89C51RD2