Skip to main content
Graduate
June 1, 2022
Question

How to set PWM to 0 for default state (before initialization should be 0)?

  • June 1, 2022
  • 3 replies
  • 2524 views

Hello, I'm driving LED driver chip (MAX16836ASA+) with PWM output of microprocessor STM32F303CB.

The issue: When turn the Power supply ON, LEDs blinked for a few moments (milliseconds).

I assume that the PWM giving some output values (not zero) before the microprocessor is fully set and start operating.

Is there any options How to set PWM that default state is Zero (between Power Supply ON and microcontroller normally operating state)?

Thank you a lot,

Domen

    This topic has been closed for replies.

    3 replies

    Super User
    June 1, 2022

    Which pin?

    Most of the STM32 pins are high-impedance (Input or Analog, in case of 'F3 Input) after reset. You have to ensure externally the required level, i.e. if the LED driver's input has pullup and you want the signal to be low, you have to add an external pulldown.

    JW

    DIvan.1Author
    Graduate
    June 1, 2022

    Thank you for your message.

    I'm using PIN 10 (PA0, TIM2_CH1).

    I already have an pull-dowm resistors.

    0693W00000Nr0qeQAB.png

    Super User
    June 1, 2022

    That should be then OK from the STM32 side.

    This may be inherent problem of the LED driver. Try to disconnect it from STM32 and switch off/on - does it still blink?

    JW

    Visitor II
    January 23, 2024

    Is there any update? Same problem for me. Pull-down resistors did not solve the problem.