I am trying to run simple program to output HIGH on IO pin of microcontroller STM8S003F3P6. I am using PB5 pin to output High. I am using 3.3v power supply and expect GPIO to output 3.3v when I set it HIGH but surprisingly I am getting 5V instead, b...
Can the TIM1 part of this tutorial be simplified as follows?https://embedded-lab.com/blog/continuing-stm8-microcontroller-expedition/6/Remove everything related to the the interrupt, because TIM1_GetCapture2() can be called at any time from main(). I...
I am following this tutorial and trying to get a complete understanding of the code:https://embedded-lab.com/blog/continuing-stm8-microcontroller-expedition/6/I have a few questions regarding the TIM2_setup(void) function:1 Why is channel 1 and chann...
My current design has +5V connected to an optocoupler output pin, the other optocoupler pin is connected to ground through a 25k resistor. (External pull down) The connection point between the optocoupler and the resistor is connected to the MCU pin ...
GreetingsI'm using an STM8S003F3 TSSOP20 (my first STMicro) for a simple project with one input (low frequency PWM) and one output (high frequency PWM). I seek to keep it as simple as possible. Since I'm not familiar with STMicro MCU's, I would like ...
Hi ST team,I referred the Application notes from the ST's for RTC temperature compensation Using STM8AL3189 MCU , Which has both positive and negative ppm compensation using CALM and CALPFrom the APP notes, ACC(ppm) = crystal deviation + k * (T -T0)^...
Arduino sketch, cosmic compiler, USB STLink programmer
#include "stm8l15x.h"#include "stm8l15x_gpio.h"#include "stm8l15x_itc.h"#include "stm8l15x_exti.h"#include "stm8l15x_clk.h"#include "stm8l15x_rtc.h"#include "stm8l15x_tim2.h"#include "stm8l15x_tim1.h"#include "stm8l15x_tim3.h"#include "stm8l15x_tim4....
In documentation for timers on S103/S105/S003 it says that bit URS or register TIMx_CR1 should allow that CNTR=x or EGR |= UG update the timer counter WITHOUT setting the UIF flag: TIM2:URS: Update request source0: When enabled by the UDIS bit, the U...