I have encountered two issues relating to the SPI clock on a S32K344 when integrating with an ADE7912.
Any advise for resolving these issues would be appreciated.
Hi,
1) seems the behavior you see is due to driver implementation of a workaround for errata 0050456, when module reset is used. This puts clock pulse and sets SOUT high until data is transmitted. This is not an issue for slave devices if really controlled by CS and SCK, but for usage you have it would bring issue.
Try to do not use module reset and keep resetting the FIFO using CR[RTF] and CR[RRF]
2) this can be issue of the analyzer sample rate, but also for higher rates, try to increase pins drive strength.
3) to read more bytes from slave you need to send required dummy bytes from master keeping CS selected.
BR, Petr
Thank you for your response @PetrS.
In addition to the issues described above, I have been unable to find a way to have the SPI clock continue after the MOSI signal is complete. During a read operation, the slave device requires a clock signal to continue pulsing while the response is broadcasted on MISO. Can you provide instructions on how to configure SPI for a read operation.