wakeup function
How to use Port D as wake up function after the STMS003goes to sleep
Discuss STM8 microcontrollers, including SWIM, USART configurations, RTC usage, ADC issues, and debugging.
How to use Port D as wake up function after the STMS003goes to sleep
I got a message "Error : Programming failed" while trying to program "STM8S103F3" microcontroller with "ST visual Programmer". Sometimes the microcontroller got programmed but several times it failed. I am using "ST-LINK V2" programmer (connections: ...
Please some one help me to how to get controller from sleep the configuration I made is not working.The below given code working fine and putting the controller in sleep but controller not waking up.The condition depends on mains (ADC Input channel 5...
Hi Everyone,I am using stm8s003k3 in one of my projects. I want to store a variable containing a number from 0 to 999 in EEPROM but the issue is FLASH_ProgramByte & FLASH_ReadByte can only store a number up to 256. I tried to use FLASH_ProgramWord b...
I have been developing a project around the STM8S105 and I've been able to read and write the program and data memory fine several times (so I know that my STLink and dev board work well). Today I set the read-out protection to do some testing and af...
#include "stm8s.h" #include "stm8s_clk.h" #include "stm8s_adc1.h" #include "stm8s_gpio.h" #include "stm8s_tim2.h" #include "main.h" #include "flash.h" #include "stm8s_awu.h" volatile unsigned short _500ms_tick; volatile unsigned short idle_counte...
The Motor control firmware only generates header files. Please help me with the source code of the same, or any files if available. Thank you!
I have a common function that I use to set up Timer 5 (I'm using it for PWM output, if it matters):timerCounts = CLK_GetClockFreq() / pow(2, TIM5_PRESALER_xx) / pwmFrequency;TIM5_TimeBaseInit(TIM5_PRESCALER_xx, timerCounts);And that works really well...
HeyI have tried to use the option byte to stop the iwdg when i enter halt.I can see that i manage to set the WDG_HALTin option byte 3.But the watchdog still resets the MCU after i enter halt. Please help me, cant i do it? If so then how do i read tha...
My program is as described in stm8s reference manual 17.4.3 External clock source mode 1and pulse counting is done in pin PC7 using HSI 16 Mhz , but the speed of counting is very low , for example for a 10 mhz pulse in 1 ms TIM1_CNTRL counts to...