STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM8L Assembler in ST-Visual Develop IDE

Dear Forum Members,I am new in STM8 and I would like to familiar with this MCU series and use it.For starting, I would like to programming in assember. When I make a new project the IDE SW automatically generatesa basic code, but I do not understand ...

JHerm.2 by Associate II
  • 424 Views
  • 4 replies
  • 0 kudos

How to implement micros() function on stm8s003?

I need to decode ASK/OOK signal, for this aim I need to know the period in microseconds between several edges. I decided to use TIM1 for this purpose, here is my code // Set fCPU = 16MHz CLK_CKDIVR = 0; CLK_PCKENR1 = 0xFF; CLK_PCKENR2 ...

STM8S/A standard lib source code can't meet MISRA C 2004 rules

Hello, I use STM8AF as MCU, and the project is ASIL B level with functional safety. I downloader the STM8S/A standard driver, I apply MISRA C 2004 as rule to check the project. Oh, I forget to told the IDE, we use IAR for STM8. And we build the pro...

CGang.1 by Associate
  • 291 Views
  • 0 replies
  • 0 kudos

STM8S001J3 setup for AIN2

This is driving me crazy. First time with this processor. I have AFR2 and NAFR2 set properly for AIN2 operation. I can verify that in the watch window and the disassembly window looks like it is working as expected. If I change the channel to AIN7 I ...

Cosmic compiler producing wrong asm

I couldn't find a forum for the cosmic compiler. If anyone knows of one let me know and I'll ask there instead.I have code that is compiling wrong. A function has a u16 parameter and that param is being referenced as u8. This is the declaration of...

mchahn by Senior
  • 305 Views
  • 6 replies
  • 0 kudos