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.

CCS/LAUNCHXL-F280049C: How to use SPIA and SPIB at same time? pinout error maybe?

Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi all : 

    I have successfully made communication with my peripheral(RF module) with SPIA bus, and now I need setup another RF module with SPIB bus. 

    I go though the example code which "\software_install\C2000Ware_3_02_00_00\driverlib\f28004x\examples\spi\spi_ex5_external_loopback_fifo_interrupts.c" and add the configuration of SPIB.

    However, I got nothing reply with my RF module, and I am very confused about the pinout of launchpad:

    

    The J6 and J8 are different on two pictures and which one is correct?

    Here below is my code to setup SPIB,could anyone tell me what's wrong or missing?

void initSPI_B_PIN(void)
{
    //SDI ---> SIMO(GPIO24)
    GPIO_setPadConfig(DEVICE_GPIO_PIN_SPISIMOB,GPIO_PIN_TYPE_PULLUP);
    GPIO_setPinConfig(DEVICE_GPIO_CFG_SPISIMOB);
    GPIO_setQualificationMode(DEVICE_GPIO_PIN_SPISIMOB,GPIO_QUAL_ASYNC);

    //SCLK ---> SPCLKA(GPIO22)
    GPIO_setPadConfig(DEVICE_GPIO_PIN_SPICLKB,GPIO_PIN_TYPE_PULLUP);
    GPIO_setPinConfig(DEVICE_GPIO_CFG_SPICLKB);
    GPIO_setQualificationMode(DEVICE_GPIO_PIN_SPICLKB,GPIO_QUAL_ASYNC);

    //SDO ---> SOMI(GPIO31)
    GPIO_setPadConfig(DEVICE_GPIO_PIN_SPISOMIB,GPIO_PIN_TYPE_STD);
    GPIO_setPinConfig(DEVICE_GPIO_CFG_SPISOMIB);
    GPIO_setQualificationMode(DEVICE_GPIO_PIN_SPISOMIB,GPIO_QUAL_ASYNC);

    //CSCON pin ---> GPIO 6
    GPIO_setPadConfig(6,GPIO_PIN_TYPE_PULLUP);
    GPIO_setPinConfig(GPIO_6_GPIO6);
    GPIO_setDirectionMode(6,GPIO_DIR_MODE_OUT);

    //CSDAT pin ---> GPIO 1
    GPIO_setPadConfig(1,GPIO_PIN_TYPE_PULLUP);
    GPIO_setPinConfig(GPIO_1_GPIO1);
    GPIO_setDirectionMode(1,GPIO_DIR_MODE_OUT);
}
void initSPIRX()
{
    //
     // Must put SPI into reset before configuring it.
     //
     SPI_disableModule(SPIB_BASE);

     //
     // SPI configuration. Use a 2MHz SPICLK and 8-bit word size.
     //
     SPI_setConfig(SPIB_BASE, DEVICE_LSPCLK_FREQ, SPI_PROT_POL0PHA1,
                   SPI_MODE_MASTER, 1000000, 8); 

     //
     // Configuration complete. Enable the module.
     //
     SPI_enableModule(SPIB_BASE);

}