Skip to main content
Shakthi
Associate II
July 6, 2022
Question

Capture input PWM analog signal using Timers.

  • July 6, 2022
  • 1 reply
  • 710 views

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 ?

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
July 6, 2022

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