hi , suppose i want to plot a sine wave of frequency 50hz in logic analyser of keil microvision 4 using any pin of corresponding adc1 input. FOR THIS to plot i have to set delay .can anyone tell me , how to calculate that delay time?? I am using stm32f103-eval
Requirement :- 50Hz No. of points to be plotted in 1 sec :- 1000 (taking a multiple of 50 to make calculations easier) Time delay after which each Start Of Conversion must triggered = 1mSec
Now trigger the ADC conversion at 1msec time interval.
Use a timer to generate delay (software delay is unreliable and stochastic). And in the timer interrupt, start ADC conversion.