NXP Semiconductors
DRAFT | D | D |
| AFT |
RAFT | RAFT AFT | |||
|
|
| DR | DR |
DLPC2917/19
ARM9 microcontrollerRAFT withDRAFTCANDRAFTand LINDRAFT
| T DRAFT | T |
| |
| DRA | DRA |
| DR |
| F | F |
| |
Depending on the operating mode selected, the SPI_CS_OUT outputs operate as an |
| DRAF | ||
|
| |||
frame format or an | DRAFT DRAFT | |||
|
|
|
| |
Each data frame is between four and 16 bits long, depending on the size of words | DRAFT | D | ||
programmed, and is transmitted starting with the MSB. |
|
| ||
|
|
|
|
There are two basic frame types that can be selected:
•Texas Instruments synchronous serial
•Motorola Serial Peripheral Interface
8.4.5.3Modes of operation
The SPI module can operate in:
•Master mode:
–Normal transmission mode
–Sequential slave mode
•Slave mode
8.4.5.4SPI pin description
The three SPI modules in the LPC2917/19 have the pins listed below. The pins are combined with other functions on the port pins of the LPC2917/19, see Section 8.3.3. Table 16 shows the SPI pins (x runs from 0 to 2; y runs from 0 to 3).
Table 16. SPI pins
DRA
Symbol | Direction | Description |
SPIx SCSy | in/out | SPIx chip select[1][2] |
SPIx SCK | in/out | SPIx clock[1] |
SPIx SDI | in | SPIx data input |
|
|
|
SPIx SDO | out | SPIx data output |
|
|
|
[1]Direction of SPIx SCS and SPIx SCK pins depends on master or slave mode. These pins are output in master mode, input in slave mode.
[2]In slave mode there is only one
8.4.5.5SPI clock description
The SPI modules are clocked by two different clocks; CLK_SYS_PESS and CLK_SPIx (x =
The SPI clock frequency can be controlled by the CGU. In master mode the SPI clock frequency (CLK_SPIx) must be set to at least twice the SPI serial clock rate on the interface. In slave mode CLK_SPIx must be set to four times the SPI serial clock rate on the interface.
LPC2917_19_1 | © NXP B.V. 2007. All rights reserved. |
Preliminary data sheet | Rev. 1.01 — 15 November 2007 | 28 of 68 |