stm8s001j3 pin 6 not set output mode
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-09 2: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.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-09 3:34 AM
Maybe you forgot about the external pull up resistor.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-09 3:44 AM
Thanks
