2015-06-24 01:57 AM
hej
i would like to know the procedure for measuring the amplitude and phase of the signal using stm32f404-discovery board.can anyone tell me how to acheive this ?2015-06-24 05:53 AM
Review your Discovery User Manual to determine which pins are free for your use.
Read at least the ADC section in the processor's Reference Manual, available on the ST web site. Review the ADC examples in the F4 Cube or Standard Peripheral Library and adapt one for your project. Assuming a sine wave: Scale and bias the signal to fit in the 0 to 3V ADC range. ADC convert at least several signal cycles at a conversion frequency that meets your phase accuracy requirement. Analyze the data for minimum and maximum to get amplitude. Reverse scale and bias to determine signal amplitude. Analyze the data for deviation from mid amplitude to determine phase. Simple, no ? Cheers, Hal