Discuss STM8 microcontrollers, including SWIM, USART configurations, RTC usage, ADC issues, and debugging.
Hi, I'm trying to Implement an interrupt every 60 seconds, however something is missing. The TIM2 itself is working but can't seem to generate any interrupt. Any idea on what am i missing? The following is the code I am using. thanks //Required Hea...
i am trying to switch a relay via the stm8s001 processor synchronously in the 0 pass. how could I realize that.i have an imput signal of 50 Hz. I can also start the timer, but I don't know how to switch the relay on exactly in the 0 cycle.(i watch th...
I'm trying to write a program to the microcontroller through the bootloader via the СAN interface.First I pass message ID 0x7f to activate bootloader. (ID=0x02, data=0x79)Then I transfer the file "E_W_ROUTINEs_128K_ver_2.0.s19" in binary form to addr...
I need to generate two signals as shown below.I need to be able to adjust A and B independently. Is there some way to use TIMER1's OC1 and OC2? I can't figure out how to make an offset in the output compares - everything seems to start at the main co...
When I switch HSI to LSE using IAR, there is always an error that "Failed to get execution status: SWIM error [30004]: Comm timeout"There is switch function:void HSI_TO_LSE(void){ if(CLK_SCSR!=0x08) // if LSE is not selected as the system clock ...
I'm trying to generate a sinusoidal PWM on STM8, but it's for an equipmetn that the user will change the frequency of the output sine wave while the PWM is running. I was able to generate a sinusoidal pwm easily for a fixed frequency, using a table I...
https://www.st.com/en/evaluation-tools/stdes-viennarect.htmlI have some questions about the PDF "stdes-vienna rect" that can be obtained from "Download data brief" in.1) Why is the CCO_clk on page 4 connected to DIGIN [1] and DIGIN [2]? Does it make ...
Here's the issue. I have built a LIN bus with a slave node and a master node using tow STM8AF/AL-Discovery boards. After flashing the boards with the demo of the STM8 LIN driver 5.1 as slave node and master node I can control either the LED or the b...