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