2017-10-30 08:04 PM
Hi
I am using
STM8S001J3
controller
on my project and I'm have some problem about it,5,6 pin GPIOB It doesn't work.
I don't know how to solve it.
Please help me..
// my
source code
GPIO_DeInit(GPIOB);
GPIO_Init(GOIOB, GPIO_PIN_ALL, GPIO_MODE_OUT_OD_HIZ_SLOW)
while(1)
{
GPIO_Write(GPIOB, 0x30);
}
I am using STVD and IAR for program development. Thanks in advance.
#stm8 #gpio2017-10-31 01:19 AM
Hello Sang hyeon Jeong,
Let me provide you a feedback regarding your question.
PB5 is true open drain pin. This means that this pin can only set logical low state, not high. High state can be achieved for example by adding external pull-up resistor. Description of PB5 you can find in STM8S001 datasheet:
PB6 is not available in this device or to be more accurate it is available as a pad inside the package, but it is not connected to any pin on the package. Description is again available in datasheet:
Best regards
Szymon
2017-10-31 03:43 AM
Instead of an external pull-up for PB5, one could use the internal pull-up of PA3 (see section 7.3 of AN5047).
Philipp
2017-10-31 03:52 AM
Very nice idea. Thanks for it Philipp.
Regards
Szymon
2017-12-26 10:32 PM
where could I download the firmware for STM8S001?
2017-12-27 01:54 AM
Hellozhang.bin,
I believe you mean example application by saying firmware. If yes, then you can refer toStandard peripheral library for STM8S, here is a
http://www.st.com/en/embedded-software/stsw-stm8html
. Example applications are under the path:STM8S_StdPeriph_Lib\Project\STM8S_StdPeriph_Examples
You can easily reuse these applications for STM8S
Additionaly I developed few new, simple example applications for STM8S001: for GPIO, UART, ADC and TIM peripherals. Please find them attached.
Regards
Szymon
________________ Attachments : STM8S001_STVD_examples.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hy7m&d=%2Fa%2F0X0000000b4q%2Ffj0jY1.3o273p4a4FBa8VoTJ1tmddg5jv2V7yHFzjJw&asPdf=false