Spi Frame Format; Clock Polarity (Cpol) And Clock Phase (Cpha) Control; User Manual - Philips LPC2101 User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
a. Single frame transfer
CLK
FS
DX/DR
b. Continuous/back-to-back frames transfer
Fig 41. Texas Instruments synchronous serial frame format: a) single frame transfer and b)
continuous/back-to-back two frames.
For device configured as a master in this mode, CLK and FS are forced LOW, and the
transmit data line DX is tristated whenever the SSP is idle. Once the bottom entry of the
transmit FIFO contains data, FS is pulsed HIGH for one CLK period. The value to be
transmitted is also transferred from the transmit FIFO to the serial shift register of the
transmit logic. On the next rising edge of CLK, the MSB of the 4 to 16-bit data frame is
shifted out on the DX pin. Likewise, the MSB of the received data is shifted onto the DR
pin by the off-chip serial slave device.
Both the SSP and the off-chip serial slave device then clock each data bit into their serial
shifter on the falling edge of each CLK. The received data is transferred from the serial
shifter to the receive FIFO on the first rising edge of CLK after the LSB has been latched.

13.3.2 SPI frame format

The SPI interface is a four-wire interface where the SSEL signal behaves as a slave
select. The main feature of the SPI format is that the inactive state and phase of the SCK
signal are programmable through the CPOL and CPHA bits within the SSPCR0 control
register.

13.3.3 Clock Polarity (CPOL) and Clock Phase (CPHA) control

When the CPOL clock polarity control bit is LOW, it produces a steady state LOW value on
the SCK pin. If the CPOL clock polarity control bit is HIGH, a steady state HIGH value is
placed on the CLK pin when data is not being transferred.

User manual

CLK
FS
DX/DR
MSB
MSB
4 to 16 bits
Rev. 01 — 12 January 2006
LSB
4 to 16 bits
LSB
MSB
4 to 16 bits
UM10161
Chapter 13: SSP
LSB
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
168

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents