@svlreg INTERRUPT_HANDLER(EXTI_PORTD_IRQHandler, 6){ /* In order to detect unexpected events during development, it is recommended to set a breakpoint on the following instruction. */ if((SWITCH == RESET) && (flag == SET)) { OFF_STATUS = TRUE; fla...
My following code is not working for sending data over LINUART port of STM8AF5286. I am using STVD and STM8_Standard_Project_Template.GPIO_Init(GPIOD, GPIO_PIN_5, GPIO_MODE_OUT_PP_HIGH_FAST);UART3_DeInit(); UART3_Init(9600,UART3_WORDLENGTH_8D,UART3_S...
Hi. Is there a way for an STM8 MCU to determine programmatically if the SWIM interface / ICP / STVD debugger are being used? I've tried checking the SWD bit in CFG->GCR and SWIM->CSR. But neither byte seems to change from SWIM debugging to a power on...
hi alli am first time user to ST micros. (8bit motorola mostly)I am looking at using stm8L132r8 in an ultra low power device, which needs 10year battery life.the micro will be stopped most of the time, woken by the RTC running from external 32khz xta...
I am new and novice can some one guide for using STM8Sxxx three-phase BLDC motor control software library V1.0. From the manual I am unable to build. Is there a tutorial or example on it. Looking for closed loop250W 36V Motor.
I am using STM8AF6213 MCU in my project. I am using PD6 (AIN6) pin to read analog value. I use PD4 (TIM5_CH1) to generate PWM. But the stm8_adc1.h and stm8_tim5.h libraries that I included in my project do not work properly. It does not see the funct...
As a newbie I'm struggling to understand the following line of code:TIM3_BKRConfig(TIM3_OSSIState_Enable,TIM3_LockLevel_1,TIM3_BreakState_Enable,TIM3_BreakPolarity_High,TIM3_AutomaticOutput_Enable);Introductory material that I've found on timers/PWM ...
I have an asm program written in ST Visual develop. Using stvd, and updloading to a STMS103f3, it runs fine. Change the target in ST v develop and build it and upload to the discovery bd thru it's st-link, it doesn't run. Checking the register add...