at89c51re2-slsem ATMEL Corporation, at89c51re2-slsem Datasheet - Page 141

no-image

at89c51re2-slsem

Manufacturer Part Number
at89c51re2-slsem
Description
At89c51re2 8-bit Flash Microcontroller
Manufacturer
ATMEL Corporation
Datasheet
Serial Peripheral Status Register
and Control (SPSCR)
124
AT89C51RE2
Reset Value = 0001 0100b
Not bit addressable
The Serial Peripheral Status Register contains flags to signal the following conditions:
Table 95. SPSCR Register
SPSCR - Serial Peripheral Status and Control register (C4H)
Bit Number
Number
SPIF
Data transfer complete
Write collision
Inconsistent logic level on SS pin (mode fault error)
Bit
7
7
6
5
3
2
1
0
Mnemonic Description
SPIF
OVR
Bit
Bit Mnemonic
6
-
-
CPOL
CPHA
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.
This bit is cleared when reading or writing SPDATA after reading SPSCR.
Reserved
The value read from this bit is indeterminate. Do not set this bit.
Overrun Error Flag
- Set by hardware when a byte is received whereas SPIF is set (the previous
received data is not overwritten).
- Cleared by hardware when reading SPSCR
OVR
5
Description
Clock Polarity
Cleared to have the SCK set to ’0’ in idle state.
Set to have the SCK set to ’1’ in idle state.
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
0
0
0
0
1
1
1
1
MODF
4
SPR1
0
0
1
1
0
0
1
1
SPR0 Serial Peripheral Rate
SPTE
0
1
0
1
0
1
0
1
3
Invalid
F
F
F
F
F
F
Invalid
CLK PERIPH
CLK PERIPH
CLK PERIPH
CLK PERIPH
CLK PERIPH
CLK PERIPH
UARTM
2
/4
/8
/16
/32
/64
/128
SPTEIE
1
7663B–8051–03/07
MODFIE
0

Related parts for at89c51re2-slsem