Skip to main content
selmesal
Associate II
August 16, 2016
Question

RESOLVED: STM32Cube example projects

Posted on August 16, 2016 at 23:32

Hello, 

Is TIM_TimeBase example project supposed to output PWM on PA6, PA7, PB0, and PB1?

#too-vague
    This topic has been closed for replies.

    5 replies

    Tesla DeLorean
    Guru
    August 16, 2016
    Posted on August 17, 2016 at 01:13

    Perhaps you can narrow that down to a specific STM32 family and board?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    selmesal
    selmesalAuthor
    Associate II
    August 17, 2016
    Posted on August 17, 2016 at 04:39

    STM32F4DISCOVERY (with STM32F407VGTx) 

    Amel NASRI
    ST Technical Moderator
    August 17, 2016
    Posted on August 17, 2016 at 11:11

    Hi mesal.sel,

    There is no PWM output for this example.

    Based on the readme file, there is only an output on PD12 (When the counter value reaches the auto-reload register value, the TIM upadate interrupt is generated and, in the handler routine, PD.12 is toggled with the frequency 0.5Hz).

    -Mayla-

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
    selmesal
    selmesalAuthor
    Associate II
    August 17, 2016
    Posted on August 17, 2016 at 15:00

    Hi Mayla,

    Is toggling PD.12 equivalent to a very slow PWM (i.e. with 0.25 Hz frequency)

    Should I expect PD.12 to transition at (t=0, t=2s, t=4s ...)

    Sel

    selmesal
    selmesalAuthor
    Associate II
    August 17, 2016
    Posted on August 17, 2016 at 16:32

    This has been resolved, thanks