Part Number: RM44L920
Other Parts Discussed in Thread: HALCOGEN
Hello,
I've been trying to interface the RM44L920 based custom board with ICM20689 using the SPI protocol. I've understood that for using mibSPI, the master should have a way to let the slave know the number of bytes it is going to transmit. But in my case, i want to send flexible number of bytes and hence i switched back to standard SPI.
In Halcogen, I've configured the necessary settings in the SPI1 tab (Master mode, internal clock, data format according to slave, word length =8 and necessary delays.
For the SPICS[2] i've kept it in GPIO mode and i'm manually toggling it because in the SPI functional mode, it doesnt seem to work. (The TRM says you have to keep dataconfig1_t.CSNR = 0x04; //for CS[2] in SPIDAT1, is this right ?).
My ICM20689 slave SPI details : 8MHz clock, MSB first, CPOL=1, CPHA=1, I've also adjusted two SPI delays (Chip select active to transmit start & transmit end to chip select inactive) to 100ns for CS setup and CS hold.
I'm able to see the SCLK and MOSI sending the necessary bytes, but i'm not able to read any response from my slave. I'm not able to understand if i'm missing anything. Please assist in proceeding further. Also let me know if any other details (like code snippets) need to be shared.
I
Thanks,
Badri