01.08.2013 Views

Chapter 24 Multichannel Serial Port Interface (McSPI).

Chapter 24 Multichannel Serial Port Interface (McSPI).

Chapter 24 Multichannel Serial Port Interface (McSPI).

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

www.ti.com Functional Description<br />

<strong>24</strong>.3.2.10.5 Multiple SPI Word Access<br />

The CPU has the ability to perform multiple SPI word access to the receive or transmit registers within a<br />

single 32-bit OCP access by setting the bit field MCSPI_MODULCTRL[MOA] to ‘1’ under specific<br />

conditions:<br />

• The channel selected has the FIFO enable.<br />

• Only FIFO sense enabled support the kind of access.<br />

• The bit field MCSPI_MODULCTRL[MOA] is set to 1<br />

• Only 32-bit OCP access and data width can be performed to receive or transmit registers, for other<br />

kind of access the CPU must de-assert MCSPI_MODULCTRL[MOA] bit fields.<br />

• The Level MCSPI_XFERLEVEL[AEL] and MCSPI_XFERLEVEL[AFL] must be 32-bit aligned , it means<br />

that AEL[0] = AEL[1] = 1 or AFL[0] = AFL[1] = 1.<br />

• If MCSPI_XFERLEVEL[WCNT] is used it must be configured according to SPI word length.<br />

• The word length of SPI words allows to perform multiple SPI access, that means that<br />

MCSPI_CH(I)CONF[WL] < 16<br />

Number of SPI word access depending on SPI word length:<br />

• 3 ≤ WL ≤ 7, SPI word length smaller or equal to byte length, four SPI words accessed per 32-bit OCP<br />

read/write. If word count is used (MCSPI_XFERLEVEL[WCNT]), set the bit field to<br />

WCNT[0]=WCNT[1]=0<br />

• 8 ≤ WL ≤ 15, SPI word length greater than byte or equal to 16-bit length, two SPI words accessed per<br />

32-bit OCP read/write. If word count is used (MCSPI_XFERLEVEL[WCNT]), set the bit field to<br />

WCNT[0]= 0.<br />

• 16 ≤ WL multiple SPI word access not applicable.<br />

<strong>24</strong>.3.2.11 First SPI Word Delayed<br />

The McSpi controller has the ability to delay the first SPI word transfer to give time for system to complete<br />

some parallel processes or fill the FIFO in order to improve transfer bandwidth. This delay is applied only<br />

on first SPI word after SPI channel enabled and first write in Transmit register. It is based on output clock<br />

frequency.<br />

This option is meaningful in master mode and single channel mode MCSPI_MODULECTRL[SINGLE]<br />

asserted.<br />

SPI Shift Clock<br />

(Module Generated<br />

Internal Clock)<br />

Channel Enabled<br />

(OCP Domain)<br />

Internal Start Request<br />

(SPI Domain)<br />

SPICLKO<br />

(POL=0)<br />

SPIENO<br />

Figure <strong>24</strong>-21. Master Single Channel Initial Delay<br />

Initial Delay on First SPI<br />

Word (INITDLY Value)<br />

Few delay values are available: No delay, 4/8/16/32 Spi cycles.<br />

Its accuracy is half cycle in clock bypass mode and depends on clock polarity and phase.<br />

SPRUH73E–October 2011–Revised May 2012 <strong>Multichannel</strong> <strong>Serial</strong> <strong>Port</strong> <strong>Interface</strong> (<strong>McSPI</strong>)<br />

Submit Documentation Feedback<br />

Copyright © 2011–2012, Texas Instruments Incorporated<br />

4147

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

Saved successfully!

Ooh no, something went wrong!