AT89C51RD2 Atmel Corporation, AT89C51RD2 Datasheet - Page 68

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.3.3.1
16.3.3.2
16.3.3.3
16.3.3.4
16.3.4
68
AT89C51RD2/ED2
Interrupts
Mode Fault (MODF)
Write Collision (WCOL)
Overrun Condition
SS Error Flag (SSERR)
Mode Fault error in Master mode SPI indicates that the level on the Slave Select (SS) pin is
inconsistent with the actual mode of the device. MODF is set to warn that there may be a multi-
master conflict for system control. In this case, the SPI system is affected in the following ways:
When SS Disable (SSDIS) bit in the SPCON register is cleared, the MODF flag is set when the
SS signal becomes ’0’.
However, as stated before, for a system with one Master, if the SS pin of the Master device is
pulled low, there is no way that another Master attempts to drive the network. In this case, to
prevent the MODF flag from being set, software can set the SSDIS bit in the SPCON register
and therefore making the SS pin as a general-purpose I/O pin.
Clearing the MODF bit is accomplished by a read of SPSTA register with MODF bit set, followed
by a write to the SPCON register. SPEN Control bit may be restored to its original set state after
the MODF bit has been cleared.
A Write Collision (WCOL) flag in the SPSTA is set when a write to the SPDAT register is done
during a transmit sequence.
WCOL does not cause an interruption, and the transfer continues uninterrupted.
Clearing the WCOL bit is done through a software sequence of an access to SPSTA and an
access to SPDAT.
An overrun condition occurs when the Master device tries to send several data Bytes and the
Slave devise has not cleared the SPIF bit issuing from the previous data Byte transmitted. In this
case, the receiver buffer contains the Byte sent after the SPIF bit was last cleared. A read of the
SPDAT returns this Byte. All others Bytes are lost.
This condition is not detected by the SPI peripheral.
A Synchronous Serial Slave Error occurs when SS goes high before the end of a received data
in slave mode. SSERR does not cause in interruption, this bit is cleared by writing 0 to SPEN bit
(reset of the SPI state machine).
Two SPI status flags can generate a CPU interrupt requests:
Table 16-2.
Flag
SPIF (SP data transfer)
MODF (Mode Fault)
• An SPI receiver/error CPU interrupt request is generated
• The SPEN bit in SPCON is cleared. This disables the SPI
• The MSTR bit in SPCON is cleared
SPI Interrupts
Request
SPI Transmitter Interrupt request
SPI Receiver/Error Interrupt Request (if SSDIS = ’0’)
4235K–8051–05/08

Related parts for AT89C51RD2