cancel
Showing results for 
Search instead for 
Did you mean: 

hi, i am new to stm32, i am doing a project on fan controller module, i need to measure the powerfactor of zero crossing of my current and voltage waveform displaying on CRO. firstly i need to select two channels for input capture to capture values

Lchal.1
Associate II

on those rising edge with interrupt and i need to count each time.

secondly i need to use another timer and set its frequency to 100KHZ with interrupt mode. i need to use counter to count at each interrupt.

thirdly based on that counter i need to calculate the power factor.

can anyone please help me how to do as i am fresher and i am little confused .

i have attached my code can anyone guide me what mistake have i done.

thank you

2 REPLIES 2
AG.2
Associate II

Hello Friend, I am also new to stm32 and I don't have a previous knowledge about any microcontroller. but I have STM32F407VET6 board, unfortunately I don't know where to begin and what to do? if you have ideas share with me like what to do where to start. Only if you like to help me.

firstly you need to know the datasheet of STM32F407VET6 . Then start step by step like using ADC, Timers, UART etc.