15.11.2012 Views

LPC2131/2132/2138 User Manual - mct.net

LPC2131/2132/2138 User Manual - mct.net

LPC2131/2132/2138 User Manual - mct.net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Philips Semiconductors Preliminary <strong>User</strong> <strong>Manual</strong><br />

ARM-based Microcontroller<br />

<strong>LPC2131</strong>/<strong>2132</strong>/<strong>2138</strong><br />

If the SSP is enabled and there is valid data within the transmit FIFO, the start of transmission is signified by the SSEL master<br />

signal being driven LOW. Master’s MOSI pin is enabled. After a further one half SCK period, both master and slave valid data is<br />

enabled onto their respective transmission lines. At the same time, the SCK is enabled with a rising edge transition.<br />

Data is then captured on the falling edges and propagated on the rising edges of the SCK signal.<br />

In the case of a single word transfer, after all bits have been transferred, the SSEL line is returned to its idle HIGH state one SCK<br />

period after the last bit has been captured.<br />

For continuous back-to-back transfers, the SSEL pin is held LOW between successive data words and termination is the same<br />

as that of the single word transfer.<br />

SPI Format with CPOL=1,CPHA=0<br />

Single and continuous transmission signal sequences for SPI format with CPOL=1, CPHA=0 are shown in Figure 41.<br />

SCK<br />

SSEL<br />

SCK<br />

SSEL<br />

Figure 41: SPI frame format with CPOL=1 and CPHA=0 (a) single and b) continuous transfer)<br />

In this configuration, during idle periods<br />

MOSI MSB<br />

MISO MSB<br />

a) Motorola SPI frame format (single transfer) with CPOL=1 and CPHA=0<br />

b) Motorola SPI frame format (continuous transfer) with CPOL=1 and CPHA=0<br />

the SCK signal is forced HIGH<br />

SSEL is forced HIGH<br />

the transmitting pin MOSI/MISO is in high impedance<br />

4 to 16 bits<br />

MOSI MSB LSB MSB<br />

MISO MSB LSB<br />

4 to 16 bits<br />

~<br />

~ ~ ~<br />

~<br />

~<br />

If the SSP is enabled and there is valid data within the transmit FIFO, the start of transmission is signified by the SSEL master<br />

signal being driven LOW, which causes slave data to be immediately transferred onto the MISO line of the master. Master’s MOSI<br />

pin is enabled.<br />

SSP Controller (SPI1) 167 November 22, 2004<br />

~<br />

~ ~ ~<br />

~<br />

~<br />

LSB<br />

LSB Q<br />

Q MSB<br />

LSB Q<br />

4 to 16 bits<br />

~<br />

~ ~ ~<br />

~<br />

~<br />

LSB

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!