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

prevent copy firmware

Posted on September 07, 2011 at 10:23Hi all, How to prevent copy firmware for stm8l MCUs? Tks all.

np1 by Associate II
  • 398 Views
  • 1 replies
  • 0 kudos

How to distinguish between POR and BOR in reset interrupt processing.

Posted on September 07, 2011 at 15:14Hi:     STM8S105 is used, there have more reset sources according to manual.     1,When power on, if reset interrupt is enable, first enter into POR, then enter BOR,POR is off.     2,When power down, if reset int...

wpj1018 by Associate II
  • 603 Views
  • 1 replies
  • 0 kudos

How to initialize the RAM in c language.

Posted on September 07, 2011 at 14:55How to initialize the RAM in STM8S105xxxHi:       I want to initialize the space of  RAM(the whole RAM), please tell me how to operate. Thanks! the language is c. Fred

wpj1018 by Associate II
  • 570 Views
  • 2 replies
  • 0 kudos

ack generated once in I2C slave receiver mode

Posted on August 30, 2011 at 11:07Hello,I'm using STM8L152C6 as a slave I2C device. I'm able to receive the first byte with acknowledge but successive rx data go along with NACKs. Here's my I2C configuration:CLK_PeripheralClockConfig(CLK_Peripheral_...

0690X0000060MlSQAU.gif
Gaston by Senior
  • 477 Views
  • 1 replies
  • 0 kudos

Cannot connect ST-Link

Posted on July 13, 2011 at 07:43I am trying to program a hex file in STM8S103F2P6 using ST-Link via STVPHowever, I get the error> Programming  PROGRAM MEMORY area...Error : Cannot communicate with the board.Wrong board selection or check board power...

jade by Associate
  • 1025 Views
  • 2 replies
  • 0 kudos

GPIO in interrupt handler

Posted on August 30, 2011 at 02:22I'm trying to create an interrupt handler that will toggle an LED on and off very quickly  (as a basic test, my end goal is to eventually do much more than that). Right now I have an interrupt handler which is confi...

jordan by Associate
  • 900 Views
  • 4 replies
  • 0 kudos

adc problem

Posted on August 25, 2011 at 01:35Hi all,I'm trying to work with the ADC of the Discovery board but I've some problem.At the end of my test I can only read something from an4 to an9.There is no way to read the first 4 channel, from an0 to an3.If I c...

canta76 by Associate II
  • 434 Views
  • 1 replies
  • 0 kudos

Looking for example code TSL V.2.4.0 for STM8S105C6, STM8S103K3

Posted on August 22, 2011 at 11:33I try to modify code from TSL V.2.4.0 in ''Example01_STM8S207_RC_5k'' for run on STM8S103K3 and STM8S105C6. Test on board STM8S discovery (for STM8S105C6). Follow TSL document to modify code but it not work. LED is ...

I2C not clocking address onto bus in master mode

Posted on August 21, 2011 at 23:52Hi, I have set up the input clock , enabled the I2C  peripherial clock and the peripherial itself. I have executed I2C-Init() with the desired parameters. The peripherial sends a start bit, and recognises this with...

STM8L15x internal RC oscillator calibration

Posted on June 23, 2011 at 14:43Dear,The allowed tolerance of oscillator frequency in my planned application is 1%. I'd like to use HSI and periodically to calibrate it. There is an application note describing the process + SW code. The method appli...

elil by Associate III
  • 418 Views
  • 2 replies
  • 0 kudos