AnsweredAssumed Answered

STM8S001J3 open-drain mode

Question asked by Sang hyeon Jeong on Dec 15, 2017
Latest reply on Jan 2, 2018 by Thomas G

Hi

 

I would like to use open-drain mode for PB5 pin of STM8S001J3.

 

GPIO_DeInit(GPIOA);

GPIO_Init(GPIOB, GPIO_PIN_5, GPIO_MODE_OUT_OD_LOW_FAST);

 

I do not know why the voltage goes down even if I set it like the code above.

Input voltage : 6V

PB5 output voltage: 4V is output.

Outcomes