STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

inline assembler query _asm

char shiftdata=8;shiftdata=_asm("rlc a",shiftdata).I am trying to rotate left through carry value 8, expecting output of 16. When I debug the code, I am getting shiftdata value as zero, instead of 16.Can you help me with this?

NA.5 by Associate
  • 251 Views
  • 0 replies
  • 0 kudos

Ctrl+space is not working on STVD

I am using STVD and Cosmic Compiler and after add some #include files, the "Control + space" stop working. It doesn´t find the SPL (StdPeriph_Lib) function anymore. Hope anyone to solve this problem. Thanks

DMarq.9 by Associate
  • 298 Views
  • 1 replies
  • 1 kudos

STM8S: TIM5-PWM frequency and duty cycle measure.

I am trying to measure the frequency and duty cycle of a PWM input on TIM5 channel 1. My frequency is being measured correctly but the duty cycle is not. GPIO_Init(GPIOD, GPIO_PIN_4, GPIO_MODE_IN_FL_NO_IT); //PWM inputI am using the 16MHz HSI clock ...

JRing.2 by Associate II
  • 615 Views
  • 4 replies
  • 0 kudos

Resolved! Compiler error when trying to add custom source files.

Hi,I am a student who has recently started working with STM8s MCU's. Currently I am working with an STM8s207K8 Nucleo 32 development board, I am using STVD along with a cosmic toolchain to program my dev board. I am able to program the microcontrolle...

0693W00000DmtNrQAJ.png
APant.1 by Associate II
  • 516 Views
  • 4 replies
  • 0 kudos

STM ADC SCAN MODE: ADC floating value observed on PIN.

I am using STM8S003F3. Currently my application requires sampling two ADC channels, which are interfaced with:1) Output of a resistor divider network which is routed directly to the microcontroller's ADC CH 32) Analog output of a sensor module PCB co...

STM8S ADC SCAN MODE Floating value observed on pin

I am using STM8S003F3. Currently my application requires sampling two ADC channels, which are interfaced with:1) Output of a resistor divider network which is routed directly to the microcontroller's ADC CH 32) Analog output of a sensor module PCB co...