Hello,
We have implemented an SPI1 interface for the ICE v2 through the os_drv library. Now we are facing the problem, that the max WordLenght is limited to 32bit in mcspi.c.
Is there any possibility to enlarge the transmission cycle to 40 or more bits(variable)? We need to transmit 40 till 64 bit in one cycle, what means to have up to 64 bit in the clock and low level CS without any interruptions!
How to change the function McSPIWordLengthSet then?
void McSPIWordLengthSet(unsigned int baseAdd, unsigned int wordLength, unsigned int chNum) { /*Clearing the wordLength field of MCSPI_CHCONF register.*/ HWREG(baseAdd + MCSPI_CHCONF(chNum)) &= ~MCSPI_CH0CONF_WL; /* Setting the wordlength field. */ HWREG(baseAdd + MCSPI_CHCONF(chNum)) |= (wordLength & MCSPI_CH0CONF_WL); }
Thank you in advance for your support!
Kind regards,
Konstantin