GPIOB not working in my stm8s003
Hey guys.
Im using stm8s003f3p6 and IAR compiler and ST SPL.
When i use gpio_init to make pb4 and pb5 output i dont know why the output does not get high and low?
Other pins on port c ,a and etc work well.
Hey guys.
Im using stm8s003f3p6 and IAR compiler and ST SPL.
When i use gpio_init to make pb4 and pb5 output i dont know why the output does not get high and low?
Other pins on port c ,a and etc work well.
PB4 & PB5 are true open drain ports, for I2C bus, on STM8S003. Push-pull is not available on them (see the datasheet).
If you want a high level to be output on the port, you will need a pull-up.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.