Figure 32: Spi Data Transfer Format (Cpha = 0 And Cpha = 1) - Philips LPC2119 User Manual

Arm-based microcontroller
Hide thumbs Also See for LPC2119:
Table of Contents

Advertisement

Philips Semiconductors
ARM-based Microcontroller
SCK (CPOL = 0)
SCK (CPOL = 1)
CPHA = 0
Cycle # CPHA = 0
MOSI (CPHA = 0)
MISO (CPHA = 0)
CPHA = 1
Cycle # CPHA = 1
MOSI (CPHA = 1)
MISO (CPHA = 1)
The data and clock phase relationships are summarized in Table 113. This table summarizes the following for each setting of
CPOL and CPHA.
• When the first data bit is driven.
• When all other data bits are driven.
• When data is sampled.
Table 113: SPI Data To Clock Phase Relationship
CPOL And CPHA Settings
CPOL = 0, CPHA = 0
CPOL = 0, CPHA = 1
CPOL = 1, CPHA = 0
CPOL = 1, CPHA = 1
The definition of when an 8 bit transfer starts and stops is dependent on whether a device is a master or a slave, and the setting
of the CPHA variable.
SPI Interface
SSEL
1
2
Bit 1
Bit 2
Bit 1
Bit 2
1
Bit 1
Bit 1

Figure 32: SPI Data Transfer Format (CPHA = 0 and CPHA = 1)

First Data Driven
Prior to first SCK rising edge
First SCK rising edge
Prior to first SCK falling edge
First SCK falling edge
3
4
5
Bit 3
Bit 4
Bit 5
Bit 3
Bit 4
Bit 5
Bit 6
2
3
4
5
Bit 2
Bit 3
Bit 4
Bit 5
Bit 2
Bit 3
Bit 4
Bit 5
Other Data Driven
SCK falling edge
SCK rising edge
SCK rising edge
SCK falling edge
149
LPC2119/2129/2292/2294
6
7
8
Bit 6
Bit 7
Bit 8
Bit 7
Bit 8
6
7
8
Bit 6
Bit 7
Bit 8
Bit 6
Bit 7
Bit 8
Data Sampled
SCK rising edge
SCK falling edge
SCK falling edge
SCK rising edge
Preliminary User Manual
January 08, 2004

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2292Lpc2294

Table of Contents