AnsweredAssumed Answered

STM8S003F3 chip and GPIO

Question asked by nguyen.vui on Aug 15, 2012
Latest reply on Aug 16, 2012 by nguyen.vui
Hi all!
I'm working with STM8S003F3 chip on my project and I'm have some problem about it,
i wana help of ST technician. on my project,i using pin4 and pin5 of port B to control normal IO applications,I have already used sample code of ST's library about GPIO in stm8s_gpio.c file, i have already written code following:
int main(void){
GPIO_DeInit(GPIOB);  GPIO_Init(GPIOB,GPIO_PIN_4,GPIO_MODE_OUT_PP_LOW_FAST);
  while(1){
  GPIO_WriteHigh(GPIOB,GPIO_PIN_4);
  };
}
but it not run. the voltage of this pin ~1.85V when it high and = 0.00V when it low
I have already used this code to control all of other pin of other port,it run fine. I have already used this code too to control pin4 and pin5 of portB of STM8S105C6T6 chip on stm8s-discovery board,it run fine.
May be it have some special thing about these pins??
Please help me answer it.

thanks and best regard!
Vui Nguyen.

Outcomes