0

I'm trying to measure the duty-cycle of the 0-5V electrical PWM signal I have generated from the any source. How can I do this? Anyone can help me?


  • IDE: Keil
  • Microcontroller: STM32F103C8T6
Nickname
  • 11
  • 3
  • that information belongs in the question above .... use the edit button to add it, then delete the comment – jsotola Nov 03 '18 at 23:06

1 Answers1

2

The process is described in detail in the Reference Manual, look for PWM input mode.

Don't forget to check the input pin in the pin definitions table of the Datasheet. If it's not marked as 5 Volt Tolerant (FT in the I/O Level column), then place a suitable voltage divider between the signal source and the input pin.