cancel
Showing results for 
Search instead for 
Did you mean: 

stm8s001j3 pin 6 not set output mode

VP
Associate II

Hi

I am using STM8S001J3 controller

on my project and I'm have some problem about it,

6 pin GPIOB 4 It doesn't work.

I don't know how to solve it.

Please help me..

//example code

GPIO_DeInit(GPIOB);

GPIO_Init(GOIOB,GPIO_PIN_ALL,GPIO_MODE_OUT_OD_HIZ_LOW);

while(1)

{

    GPIO_Write_High(PORTB,PINB4 );

     Delay(10000)// 1 sec delay

   GPIO_Write_Low(PORTB,PINB4 );

     Delay(10000)// 1 sec delay

}

I am using IAR for program development. Thanks in advance.

2 REPLIES 2
Vyacheslav Azarov
Associate III

Maybe you forgot about the external pull up resistor.

Thanks