[SOLVED] STM32F205 DAC Speed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-07-04 1:20 AM
I am using the code from the DAC with DMA example in the Standard Peripheral Library V1.1.0 to produce a sine wave. The updates seem to occur about every 4.5us.
Is it possible to significantly increase the update speed with this device? I'm looking for updates at more like 2MHz rather than the <250KHz that I'm getting. Thanks in advance#dac #dac-dma- Labels:
-
DAC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-07-04 1:40 AM
Is it possible to significantly increase the update speed with this device?
Theoretically yes, but practically not. Check the datasheet for the DAC settling time. I can't cite the exact number from memory, but it's around 5us. The DAC, as implemented in the STM32, just will not go faster. For significantly faster output, you need exteral devices.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-07-14 5:10 AM
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-03-12 4:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-03-12 4:16 AM
Is it possible to reduce the number of bits per sample or reduce the reference voltage in order to increase the data rate?
Because the datasheet speaks of shorter settling times for LSB changes, compared to full-scale ? There are still the same RC constants at work, and you would lose more (in regard to resolution and SNR), than you possibly gain. And, expect significant variations in settling time over temperature and between individual chips. Not sure if you can change the reference voltage, look it up in the reference manual. If the internal DAC doesn't match your specs, rather consider an external device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-03-12 5:13 AM
I'm sure one could characterize the behaviour.
It uses the same VREF as the ADC, so you could perhaps change that.User DarthVader built a 3 channel VGA DAC using a Resistor Ladder configuration.Up vote any posts that you find helpful, it shows what's working..
