Skip to content

[F1] Hardware Timer Input capture not working #812

Closed
@mogupta

Description

@mogupta

Hello Everyone
I tried the following example
https://github.com/stm32duino/STM32Examples/blob/master/examples/Peripherals/HardwareTimer/InputCapture/InputCapture.ino
My observations

  1. I connected a PWM signal (from another circuit) to pin D2 but it doesn't recognize the input.
  2. If I generate a PWM signal from the STM32 itself and connect it to D2 it works no problem.
  3. If I add a very small resistor 20 ohms between the STM32 generated PWM signal to D2 , it doesn't work. Frequency is 0
  4. The PWM signal from another circuit obviously has some resistance. So this could be the reason why its not being detected on the STM32 ?
  5. If I connect the PWM signal (from another circuit) to Arduino Uno, it works out of the box. No problem.
  6. If I use the PWM signal (from another circuit) and use digitalRead on the STM32, it prints out 1 and 0 on the Serial correctly on the same D2 pin.
    I would appreciate any help. I am new to STM32 family

Metadata

Metadata

Assignees

Labels

bug 🐛Something isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions