This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

App Note for McBSP as SPI slave with CPU interrupts...

I would like to get APP NOTES for McBSP as SPI slave using CPU only..(NO EDMA)...

Can anyone kindly guide me where to find it?

 

Thank you,

Kanthi

  • Hi Kanthi,

    Could you please provide some more information,

    1. What is the Platform (EVM) being used?

    2. Which BIOS PSP (Platform support Package) are you planning to use?

    3. If you are already using BIOS PSP, then please provide me the PSP release version? and also the tools being used, like SYS/BIOS, CG tools, CCS, IPC etc 

    Thanks and Regards,

    Sandeep K

  • 1) Spectrum Digital EVM board Gel file 1.50...

    2) PSP drivers: DM648_BIOSPSP_RELEASE_01_10_03     ->   pspdrivers_1_10_03

    3) I am using "Chip Select Libraries" (CSL) from that driver.

    I am building my code based on the following example code:

    DM648_BIOSPSP_RELEASE_01_10_03\pspdrivers_1_10_03\packages\ti\sdo\pspdrivers\soc\dm6437\examples\mcbsp

     

    Purpose of my project: Using 6437 as SPI Slave with Freescale HC12X as MASTER.  

    Kindly refer to the below post for more information on my work & configuration done by me.. which is not working..    Data receiving is consistently erroneous. If any one can give me the exact slave configuration for 1Mhz Clock from the Master, I would be thank ful.

    http://e2e.ti.com/support/embedded/f/355/p/97315/340026.aspx#340026

  • Hi Kanthi,

     

    The CSL Example code you are referring to, configures MCBSP in 32 bit loopback mode and uses software polling to transmit and receive 32bit words. Thats all.. So, have you tested this PSP provided McBSP CSL application?. Is it working on your setup?. 

    The McBSP sample application provided by pspdrivers_1_10_03 (placed in: pspdrivers_1_10_03\pspdrivers_1_10_03\packages\ti\sdo\pspdrivers\system\dm6437\bios\evmDM6437\audio\sample), performs audio record and playback in a continuous loop. It will record the audio from the line-in port and playback the audio through line-out/headphone-out port.

    If you need to configure McBSP as SPI Slave mode and implement it in interrupt(CPU) mode, you need to change the following structure(placed in: pspdrivers_1_10_03\packages\ti\sdo\pspdrivers\system\dm6437\bios\evmDM6437\audio\sample\src\psp_bios_mcbsp_sample.c):

    PSP_mcbspDevParams mcbsp_deviceparams = {

     

                            };  /* Device parameters structure */ 

    "PSP_McBSP_McBSP_SPIMASTER" has to be changed to "PSP_McBSP_McBSP_SPISLAVE" and,

    "PSP_OPMODE_DMAINTERRUPT" to "PSP_OPMODE_INTERRUPT"

    Please refer the chapter 5 of BIOS_McBSP_Driver_UserGuide.pdf for more details regarding configuring McBSP in SPI mode.

     

    Thanks & regards,

    Raghavendra