AT89C51IC2 Atmel Corporation, AT89C51IC2 Datasheet - Page 78
AT89C51IC2
Manufacturer Part Number
AT89C51IC2
Description
Manufacturer
Atmel Corporation
Specifications of AT89C51IC2
Flash (kbytes)
32 Kbytes
Max. Operating Frequency
60 MHz
Cpu
8051-12C
Max I/o Pins
34
Spi
1
Twi (i2c)
1
Uart
1
Sram (kbytes)
1.25
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
Company:
Part Number:
AT89C51IC2-RLTIL
Manufacturer:
ATMEL
Quantity:
640
Company:
Part Number:
AT89C51IC2-RLTIL
Manufacturer:
ATMEL
Quantity:
4 116
Company:
Part Number:
AT89C51IC2-UL
Manufacturer:
XR
Quantity:
2
Company:
Part Number:
AT89C51IC2-UM
Manufacturer:
Atmel
Quantity:
5
Serial Peripheral Status Register
(SPSTA)
78
AT89C51IC2
Reset Value = 0001 0100b
Not bit addressable
The Serial Peripheral Status Register contains flags to signal the following conditions:
•
•
•
Table 59 describes the SPSTA register and explains the use of every bit in the register.
Table 59. SPSTA Register
SPSTA - Serial Peripheral Status and Control register (0C4H)
Bit Number
Number
SPIF
Data transfer complete
Write collision
Inconsistent logic level on SS pin (mode fault error)
Bit
7
7
6
5
4
3
2
1
0
Mnemonic Description
SSERR
WCOL
WCOL
MODF
SPIF
Bit
Bit Mnemonic
6
-
-
SPR1
SPR0
Serial Peripheral Data Transfer Flag
Cleared by hardware to indicate data transfer is in progress or has been
approved by a clearing sequence.
Set by hardware to indicate that the data transfer has been completed.
Write Collision Flag
Cleared by hardware to indicate that no collision has occurred or has been
approved by a clearing sequence.
Set by hardware to indicate that a collision has been detected.
Synchronous Serial Slave Error Flag
Set by hardware when SS is deasserted before the end of a received data.
Cleared by disabling the SPI (clearing SPEN bit in SPCON).
Mode Fault
Cleared by hardware to indicate that the SS pin is at appropriate logic level, or
has been approved by a clearing sequence.
Set by hardware to indicate that the SS pin is at inappropriate logic level.
Reserved
The value read from this bit is indeterminate. Do not set this bit
Reserved
The value read from this bit is indeterminate. Do not set this bit.
SSERR
5
Description
SPR2
0
0
0
0
1
1
1
1
MODF
4
SPR1
0
0
1
1
0
0
1
1
SPR0 Serial Peripheral Rate
0
1
0
1
0
1
0
1
3
-
F
F
F
F
F
F
F
Invalid
CLK PERIPH
CLK PERIPH
CLK PERIPH
CLK PERIPH
CLK PERIPH
CLK PERIPH
CLK PERIPH
2
-
/2
/4
/8
/16
/32
/64
/128
1
-
4301D–8051–02/08
0
-