Skip to main content
Donnie B
Associate
October 24, 2019
Question

Selecting a STM32 MCU

  • October 24, 2019
  • 2 replies
  • 2064 views

Hi

Thank you for having me here! I come from the AVR-Mega community and wondering about selecting a STM32 MCU. I needed more time to process between my input capture and USART and HDLC processing. Which MCU have 4 timers and input/output capture available? something a beginner can get a understanding of whats going here with STM32. I feel like I'm in deep water right now ooking for a Nucleo Board.

thank you

Don

    This topic has been closed for replies.

    2 replies

    waclawek.jan
    Super User
    October 24, 2019

    What do you mean by "input/output capture"?

    Probably all STM32 have at least 4 timers; the question is only whether enough pins from them are brought out for your particular purpose.

    0690X00000AqpicQAB.png

    JW

    PS. Please change your username to a normal nick.

    Donnie B
    Donnie BAuthor
    Associate
    October 24, 2019

    I'm not even sure if I know enough yet about STM32 but on AVR MCU I'm using input capture so an interrupt is generated on say rising edge save that time reconfigure timer for falling edge and subtract the 2 times to determine the pulse with on the GPIO pin. Output compare the MCU generates the timing of the pulse .

    Tesla DeLorean
    Guru
    October 24, 2019

    You can get the processor to interrupt/latch on either/both edges (for the most part), you can also cross-feed (indirect) onto a second channel such that one pin can latch CH1 and CH2 on opposite edges.

    Also there is a PWM Input mode, pairing CH1/CH2 and reset such that you can get one interrupt and compute Period and Duty, or just read the registers to see the most current measurement.

    The TIM are probably the most complex part of the STM32 design.

    Remember there is a single counting element, and four latches to either capture the current count, or trigger on a count comparison. You can mix channels between capturing or comparing.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Donnie B
    Donnie BAuthor
    Associate
    October 25, 2019

    Awesome I installed the MCU Finder on my tablet

    Thank you Bryan

    Don