2025-04-08 9:00 AM - last edited on 2025-04-08 9:09 AM by Andrew Neil
Split from https://community.st.com/t5/stm32cubeide-mcus/problem-with-file-ioc-quot-not-a-valid-ioc-file-quot/td-p/791325 as this is a new question
But now, I have another question. The file I use is one of the example on stm32G431RB "DAC_SignalGeneration2" and for this example, the output frequency on Oscillo is 1kHz but for my use, I want to have high frequency for sinusoidal signal on oscilloscope. I try many issu but i don't have what i want.
For example, I calculated PSC et ARR corresponding to my frequency i want or double the number of step in tab sinewave or do (programmed a specific tab sinwave at the frequency i want but i stil don't have good result on oscilloscope.
And i don't understand the specific roles of each timer (TIM2 & TIM6) in this code.
Thank you for you respond
2025-04-08 9:05 AM
2025-04-08 9:08 AM - last edited on 2025-04-08 9:14 AM by Andrew Neil
Duplicate - merged.
I change the file. But now, I have anathor question. The file I use is one of the example on stm32G431RB "DAC_SignalGeneration2" and for this example, the output frequency on Oscillo is 1kHz but for my use, I want to have high frequency for sinusoidal signal on oscilloscope. I try many issu but i don't have what i want.
For example, I calculated PSC et ARR corresponding to my frequency i want or double the number of step in tab sinewave or do (programmed a specific tab sinwave at the frequency i want but i stil don't have good result on oscilloscope.
And i don't understand the specific roles of each timer (TIM2 & TIM6) in this code.
Thank you for you respond
2025-04-08 9:12 AM
@mala wrote:for my use, I want to have high frequency for sinusoidal signal on oscilloscope
How high ?
@mala wrote:i stil don't have good result on oscilloscope.
In what way(s) is it "not" good ?
Perhaps show a screenshot from your oscilloscope
And show the code you used.
2025-04-08 10:07 AM - edited 2025-04-08 12:50 PM
Hello, FYI,
From the datasheet:
DAC at 1MSPS:
DAC at 15MSPS: