Skip to main content
DIvan.1
Associate III
Jun 1, 2022 7:42 AM UTC
Question

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

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.

4 replies

waclawek.jan
Super User
Jun 1, 2022 10:54 AM UTC

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.1
DIvan.1Author
Associate III
Jun 1, 2022 11:30 AM UTC

Thank you for your message.

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

I already have an pull-dowm resistors.

0693W00000Nr0qeQAB.png

waclawek.jan
Super User
Jun 1, 2022 1:16 PM UTC

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
Jan 23, 2024 10:31 AM UTC

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