nRF5340 SPI DAC7311

Hello

I am going to use nRF5340 with DAC7311 DAC. It is a time critical application where nRF5340 has to send 16-bit data to DAC7311 exactly at 6us continuously.

Is it possible to run on nRF5340?

Can anyone give us advice and/or provide a sample code?

The nRF5340 and DAC7311 connection is as below:

nRF5340 SPI CS pin connects to DAC7311 /SYNC pin

nRF5340 SPI SCK pin connects to DAC7311 SCLK pin

nRF5340 SPI MOSI pin connects to DAC7311 DIN pin

Thank you

Parents Reply
  • Hello Kenneth

    Thanks for your support. It works.

    Now we have to write m_tx_buffer and read m_rx_buffer (in nrfx_spim/non_blocking sample code) once spim4 sent 16-bit data, however, the timer_handler and/or spim_handler is invoked more than 6us. Consequently, the m_tx_buffer is not updated in every 6us.

    Is there any advice of real-time handler example such that we can update the m_tx_buffer and queue the m_rx_buffer?

    Thank you

Children
Related