dac & adc with stm32cubemx and keil
I have a project using nucleo stm32f334.
With the way it works
I get the adc value from the 12 bit potentiometer. Then I want to display the value using dac and see the frequency, period and voltage from the oscilloscope.
I want the magnitude of the frequency of 200 hz with the period as fast as possible. I have used the formula to find the frequency, namely
f = CLOCK SOURCE / ((prescaler + 1) x (period + 1)) but the frequency produced by the oscilloscope is not 200 hz but between 35-40 hz.
I want to ask, are there other factors that I should calculate, or is there any influence from the clock configuration on stm32cubeMX?
Please help me, I really need your direction and help. Does anyone have a sample program or can anyone explain how I do it so that I don't get lost working on it? Thank you.
