cancel
Showing results for 
Search instead for 
Did you mean: 

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

DIvan.1
Associate III

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

4 REPLIES 4

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

Thank you for your message.

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

I already have an pull-dowm resistors.

0693W00000Nr0qeQAB.png

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

csezenoglu
Associate

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