Serial Peripheral Interface (Spi) - Philips P89LPC938 User Manual

Single-chip microcontroller
Table of Contents

Advertisement

Philips Semiconductors
Table 86:
Slave Transmitter mode
Status code
Status of the I
(I2STAT)
hardware
C0H
Data byte in
I2DAT has been
transmitted;
NACK has been
received
C8H
Last data byte in
I2DAT has been
transmitted
(AA = 0); ACK has
been received

13. Serial Peripheral Interface (SPI)

The P89LPC938 provides another high-speed serial communication interface, the SPI
interface. SPI is a full-duplex, high-speed, synchronous communication bus with two
operation modes: Master mode and Slave mode. Up to 3 Mbit/s can be supported in either
Master or Slave mode. It has a Transfer Completion Flag and Write Collision Flag
Protection.
User manual
...continued
2
C
Application software response
to/from I2DAT
to I2CON
STA
No I2DAT action
0
or
no I2DAT action or 0
no I2DAT action or 1
no I2DAT action
1
No I2DAT action
0
or
no I2DAT action or 0
no I2DAT action or 1
no I2DAT action
1
Rev. 03 — 7 June 2005
Next action taken by I
hardware
STO SI
AA
0
0
0
Switched to not addressed SLA
mode; no recognition of own SLA or
General call address.
0
0
1
Switched to not addressed SLA
mode; Own slave address will be
recognized; General call address
will be recognized if I2ADR.0 = 1.
0
0
0
Switched to not addressed SLA
mode; no recognition of own SLA or
General call address. A START
condition will be transmitted when
the bus becomes free.
0
0
1
Switched to not addressed SLA
mode; Own slave address will be
recognized; General call address
will be recognized if I2ADR.0 = 1. A
START condition will be transmitted
when the bus becomes free.
0
0
0
Switched to not addressed SLA
mode; no recognition of own SLA or
General call address.
0
0
1
Switched to not addressed SLA
mode; Own slave address will be
recognized; General call address
will be recognized if I2ADR.0 = 1.
0
0
0
Switched to not addressed SLA
mode; no recognition of own SLA or
General call address. A START
condition will be transmitted when
the bus becomes free.
0
0
1
Switched to not addressed SLA
mode; Own slave address will be
recognized; General call address
will be recognized if I2ADR.0 = 1. A
START condition will be transmitted
when the bus becomes free.
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
UM10119
P89LPC938 User manual
2
C
90 of 139

Advertisement

Table of Contents
loading

Table of Contents