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/TMS570LS3137: how to set chip select in TMS570Ls3137?

Part Number: TMS570LS3137
Other Parts Discussed in Thread: EM1402EVM, HALCOGEN,

Tool/software: Code Composer Studio

HI SIR,

For chip select,i have made CS0 and CS1 as GIO and make it as output assigning DOUT as 1 in halcogen. i am connecting CS_STORE and CS_ENABLE of EM1402EVM to the GIOA4 AND GIOA7 ports of TMS570Ls3137 board.

In the code, they are setting for CS3 wake high and low shown below:

void SetCS3forWake()
{
spiREG2->GCR0 = 1; //Bring SPI 3 out of reset
spiREG2->PCDIR = 1<<SPI_PIN_CS3; //CS3 as output
}

void SetWakeHigh()
{
spiREG2->PCSET = 1<<SPI_PIN_CS3; //set CS3 high
}

void SetWakeLow()
{
spiREG2->PCCLR = 1<<SPI_PIN_CS3; //set CS3 low
}

Now, i am confused what are the settings i have to do in Code for chip select pin?

Please provide some solution,

Thank you