Hello, I am trying to drive an MCP4922 12-channel SPI DAC with an esp32 using DMA. I was previously able to do this with a teensy 3.2, and the spi output looks something like this:
I am trying to do this using an esp32 and DMA, but the DAC requires the chip select line to pulse every time a 2-byte word is sent. I can of course do an spi_device_transmit() for each 2-byte word, but this is not nearly fast enough to reproduce the signal in the image above. Is there any way I can go about creating an SPI signal like the one in the image? Thanks.
How to to drive an SPI DAC with DMA?
-
- Posts: 6
- Joined: Thu Feb 02, 2023 8:53 am
Re: How to to drive an SPI DAC with DMA?
Hi AutogolazzoJr
Did you ever figure out how to use DMA to MCP4922 SPI DAC and pulsing the CS of the DAC every 2 bytes?
I'm having the same issue now with an MCP4823 which is from the same DAC family. Thanks.
Did you ever figure out how to use DMA to MCP4922 SPI DAC and pulsing the CS of the DAC every 2 bytes?
I'm having the same issue now with an MCP4823 which is from the same DAC family. Thanks.
Who is online
Users browsing this forum: No registered users and 165 guests