cancel
Showing results for 
Search instead for 
Did you mean: 

Capture input PWM analog signal using Timers.

Shakthi
Associate II

I have a specific requirement to capture input PWM analog signal using Timers.

The timer should capture both period and duty cycle of the input signal for one pulse, then stop the capture automatically.

The application can read the capture compare register (CCR1, CCR2) and enable the capture again.

MCU : STM32F207

I read the reference manual of the STM32F207 mcu (page 395, section 14.3.6 PWM input mode). I did not find a way to configure the timer for the above requirement.

Can someone please enlighten me with specific configuration ?

1 REPLY 1

There is no built-in mechanism to achieve this:

> then stop the capture automatically

What you can do is to set up DMA which would transfer the CCR registers into memory.

JW