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.

MSPM0G1506: SPI 3-wire not working

Part Number: MSPM0G1506
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi,

    I need help with SPI (Motorola 3-wire with separate CS lines to 2 peripherals) on custom board.  I'm sending data to my slave device but the received data on MISO is always 0xff.  Am I setting the ChipSelect pin as GPIO output correct? I want to use PA9 and PA3 as GPIO output pins and assign them as SPI Chip Selects for my 2 slave devices.

     Please see my sample code. Thanks for the help.

DL_GPIO_initDigitalOutput(GPIO_PORTA_PA9_IOMUX);
DL_GPIO_initDigitalOutput(GPIO_PORTA_PA3_IOMUX);

DL_GPIO_setPins(GPIO_PORTA_PORT, GPIO_PORTA_PA9_PIN | GPIO_PORTA_PA3_PIN );
DL_GPIO_enableOutput(GPIO_PORTA_PORT, GPIO_PORTA_PA9_PIN | GPIO_PORTA_PA3_PIN);