2019-10-09 02:23 AM
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.
2019-10-09 03:34 AM
Maybe you forgot about the external pull up resistor.
2019-10-09 03:44 AM
Thanks