Serial peripheral status register (spsta) – Rainbow Electronics AT89C5122 User Manual

Page 145

Advertising
background image

145

AT8xC5122/23

4202E–SCR–06/06

Serial Peripheral Status Register
(SPSTA)

The

Serial Peripheral Status Register contains flags to signal the following

conditions:

Data transfer complete

Write collision

Inconsistent logic level on SS pin (mode fault error)

Reset Value = 00X0XXXXb

Table 86. Serial Peripheral Status and Control Register - SPSTA (C4h)

7

6

5

4

3

2

1

0

SPIF

WCOL

SSERR

MODF

-

-

-

-

Bit

Number

Bit

Mnemonic

R/W

Mode

Description

7

SPIF

R

Serial Peripheral data transfer flag

Clear 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.

6

WCOL

R

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.

5

SSERR

R

Synchronous Serial Slave Error flag

Set by hardware when SS is modified before the end of a received data.

Cleared by disabling the SPI (clearing SPEN bit in SPCON).

4

MODF

R

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

3 - 0

-

RW

Reserved

The value read from this bit is indeterminate. Do not change these bits.

Advertising