AT89C51RD2-RDTIM Atmel, AT89C51RD2-RDTIM Datasheet - Page 70

no-image

AT89C51RD2-RDTIM

Manufacturer Part Number
AT89C51RD2-RDTIM
Description
MCU 8-Bit AT89 80C51 CISC 64KB Flash 3.3V/5V 64-Pin VQFP Tray
Manufacturer
Atmel
Datasheet
16.3.5.2
70
AT89C51RD2/ED2
Serial Peripheral Status Register (SPSTA)
Reset Value = 0001 0100b
Not bit addressable
The Serial Peripheral Status Register contains flags to signal the following conditions:
Table 16-4
Table 16-4.
SPSTA - Serial Peripheral Status and Control register (0C4H)
Bit Number
• Data transfer complete
• Write collision
• Inconsistent logic level on SS pin (mode fault error)
Bit Number
SPIF
7
6
7
4
3
2
1
describes the SPSTA register and explains the use of every bit in the register.
Mnemonic
SPSTA Register
WCOL
WCOL
SPIF
Bit
6
Bit Mnemonic
MSTR
CPOL
CPHA
SPR1
SPR0
Description
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.
SSERR
5
Description
Serial Peripheral Master
Cleared to configure the SPI as a Slave.
Set to configure the SPI as a Master.
Clock Polarity
Cleared to have the SCK set to ’0’ in idle state.
Set to have the SCK set to ’1’ in idle low.
Clock Phase
Cleared to have the data sampled when the SCK leaves the idle state (see
CPOL).
Set to have the data sampled when the SCK returns to idle state (see
CPOL).
SPR2 SPR1 SPR0 Serial Peripheral Rate
0
0
0
0
1
1
1
1
MODF
4
0
0
1
1
0
0
1
1
0
1
1
1
0
1
0
1
F
F
F
F
F
F
F
Invalid
CLK PERIPH
CLK PERIPH
CLK PERIPH
CLK PERIPH
CLK PERIPH
CLK PERIPH
CLK PERIPH
3
-
/2
/4
/8
/16
/32
/64
/128
2
-
1
-
4235J–8051–01/08
0
-

Related parts for AT89C51RD2-RDTIM