We have configured DSPI_B to communicate with EEPROM as per the following code
void DSPI_B_Init(void)
{
DSPI_B.MCR.R = 0xC0010001;
DSPI_B_CTAR0 = 0x78011004;
DSPI_B.MCR.B.HALT = 0x1;
}
void WriteToEEPROM(void)
{
uint32_t i = 0,Iter = 0,uMastereData = 0,uLastWord = 0;
DSPI_B.MCR.B.HALT = 0x1;
uMastereData = (0x80010000 | 0x1400);
DSPI_B.PUSHR.PUSHR.R = uMastereData;
uMastereData = (0x80010000 | 0xA5A5);
DSPI_B.PUSHR.PUSHR.R = uMastereData;
DSPI_B.MCR.B.HALT = 0x0;
while((DSPI_B.SR.B.TCF == 0))//Wait for Tx complete
{}
}
We have set the CONT(bit 0) to 1 in DSPI_B.PUSHR to keep the PCS signal asserted between transfers but we have observed that PCS is asserted only for 3.20 microseconds
and de-asserted while data transfer is in progress. Please find the attached snapshot