STM8 MCUs

Discuss STM8 microcontrollers, including SWIM, USART configurations, RTC usage, ADC issues, and debugging.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Infinite ISR on STM8L

Posted on April 01, 2014 at 21:04I'm exploring an STM8L152 on the Discovery Board. That board has a user button, which I have set to trigger an interrupt on a GPIO (pin C1, if that matters). I can watch the interrupt fire in the debugger (using STVD...

vince by Associate III
  • 626 Views
  • 0 replies
  • 0 kudos

About STM8 decimal adjust

Posted on March 29, 2014 at 12:02Hello everyone, I just started learning STM8 assembly language, but can not find the decimal adjust instruction, so do not BCD arithmetic.Have thought about writing a decimal adjustment subroutine, the addition shoul...

ysc by Associate
  • 655 Views
  • 2 replies
  • 0 kudos

STM8S103K3 - ADC takes longer than expected?

Posted on March 27, 2014 at 18:04I am timing the ADC conversion from TRGO to EOC.  I calculate that the conversion should take 3.5us but I measure a minimum of 4.0us using an oscilloscope.I have included the relevant code loop below.Please does anyo...

Interrupt cant set global variable?

Posted on March 13, 2013 at 13:22Hi all. I got a problem: Every time i am setting a global variable in my ISR it is set to 0 after the ISR has ended!volatile int test; void main(void){ TIM1_DeInit();  TIM1_TimeBaseInit(10, TIM1_COUNTERMODE_UP, 20000...

texton1 by Associate II
  • 1877 Views
  • 6 replies
  • 0 kudos

STM8L052 vs STM8L152

Posted on March 18, 2014 at 14:38i have made program for DiscoveryL152, with STM8L152. mcu. Program works properly. Now i try to start this program on other board with STM8L052C6 mcu. LCD not works - all COMx and segment pins are idle...... In all S...

ygrod by Associate II
  • 549 Views
  • 0 replies
  • 0 kudos

STM8L152-STM8L052 LCD

Posted on March 18, 2014 at 13:49i have made program for DiscoveryL152, with STM8L152. mcu. It works properly. Now i try to start this program on other board with STM8L052C6 mcu. LCD not works - all COMx and segment pins are idle...... In all ST doc...

ygrod by Associate II
  • 466 Views
  • 0 replies
  • 0 kudos

Windows XP remote desktop to Cosmic STM8

Posted on March 11, 2014 at 17:16Cosmic STM8 is installed in Windows XP with license. Since we are working in a networked-host, we will access such Windows XP host using Windows XP remote desktop access. When Cosmic STM8 is started from the physical...

scheung by Associate
  • 515 Views
  • 0 replies
  • 0 kudos

STM8S003F PD4 doesn't work as GPIO

Posted on February 27, 2014 at 14:44Hi all! I am using STM8S003F microcontroller with UART in async mode. I want to use UART1_CK pin as regular GPIO in push-pull mode. This pin is PD4. When peripherals are configured as below:    PD_DDR_DDR4 = 1;   ...

kiroid by Associate II
  • 1679 Views
  • 4 replies
  • 0 kudos

STM8S and EXTI and Continuous Interrupts

Posted on January 24, 2012 at 08:25MCU: STM8S105C6Port: GPIOBBit: 2 GPIOB:2 is the only pin/bit set up for external interrupt, yet regardless of any edge sensitivity setting in EXTI_CR1, once an interrupt is invoked it is continuously invoked while ...

Workalot by Associate III
  • 2339 Views
  • 6 replies
  • 1 kudos