Hello,
I’m using DA16200’s SPI HAL to talk to an Intan RHD2132 (which requires a 16-bit full-duplex transfer: MOSI sends a command while MISO returns 16-bit data). The current examples show only half-duplex (write-then-read), and this mode limits my maximum sampling rate.
Does the DA16200 SPI hardware support true full-duplex? If so, which SPICR/SPIFCR bits must be set (e.g., equivalent of “full-duplex mode”)?
Are there any sample code or register settings to drive simultaneous TX/RX (CPOL=0, CPHA=1) for a single 16-bit transaction?
If the HAL does not support full-duplex, what’s the recommended way to modify spi_transfer() (or related driver code) to assert TX and RX at the same time?
spi_transfer()
Any concise guidance or code snippets would be greatly appreciated. Thank you!
Hi There,Thank you for posting your question online.I need to check on this and I will get back to you as soon as possible.Best Regards,OV_Renesas
Thank you for your prompt response. To clarify the issue further, I am referring to the UM-WI-002 user manual’s description of SPI_WRITE_READ():
SPI write and read operation (write before read. This function will run in concatenation mode internally.)
Although the documentation states that full-duplex is supported, the “write-before-read” concatenation mode effectively behaves like half-duplex: it performs the entire write phase first, then immediately switches to a read phase using a separate sequence of clock pulses. In other words, MOSI and MISO are not active simultaneously on the same clock edges—this appears as a write-then-read operation rather than true full-duplex transfer.
Could you please confirm whether there is a way to force a single 16-bit SPI transaction where MOSI and MISO are both active on the same clock edges? If so, which API calls or register settings should be used instead of SPI_WRITE_READ() to achieve true full-duplex behavior?
Thank you for your assistance.
Hi Wenkai,I have reached out to you directly with a Private Message.Please check your inbox.Best Regards,OV_Renesas
Hi Wenkai,Apologies for the delay.Could you please clarify if you want the DA16200 in Master or Slave for SPI?Best Regards,OV_Renesas