Question
input capture help or other suggest
Posted on May 20, 2014 at 01:21
hello
I am using STM32f100C8 on this controller implemented :- Tim4 that work as global clock for all the functions (generating ticks and counter with flags compare to seconds )
- Tim3 work as PWM but it implemented manually using the timer4 ticks as I put the port high and low manually after checking the timer and the port status (all these steps of PWM done in ISR with pirotry less that the ISR of TIM4)
- this PWM is connected to current booster (using transistor and coil and store the charges in a capacitor).
- I change the PWM duty cycle according to the voltage on Capacitor (get this value using ADC)
so if input capture can solve this problem to get where this bug generated
plz show me the code to configure the timer and remap this timer as this is my first time to deal with input capture thanks in advance #input-capture