STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM8 Hardware I2C (Master) Question

Posted on May 23, 2017 at 12:15Question :We use STM8 Sample Code to test Hardware I2C ,but the waveform is unknown .But we use Software I2C (page 2 ,use GPIO) ,It is OK.   May someone kindly give me the helping hand?Sample Code: /en.stsw-stm8004 /ST...

STM8S swim GPIO ??

Posted on May 19, 2017 at 22:19STM8S : SWIM pin as GPIO does not work for me, please explain how to make it work .. Situation: vcc,  10k,  swim, button, gndmain() { CFG->GCR = 0x01;GPIO_Init(GPIOD, D1, GPIO_MODE_IN_PU_NO_IT); ..}software does not wo...

enmirc by Associate II
  • 455 Views
  • 1 replies
  • 0 kudos

STM8S : SWIM pin as GPIO

Posted on May 20, 2017 at 06:50STM8S : SWIM pin as GPIO does not work for me, please explain how to make it work .. Situation: vcc,  10k,  swim, button, gndmain() { CFG->GCR = 0x01;GPIO_Init(GPIOD, D1, GPIO_MODE_IN_PU_NO_IT); ..}software does not wo...

enmirc by Associate II
  • 407 Views
  • 0 replies
  • 0 kudos

Hello, I have a question about PWM outputs,

Posted on May 18, 2017 at 13:19I work on a STM8L151C8, 48Pins, I cant't find accurate informations about how to generate PWM on an I/O port Pin, Actually I want to route 2 PWM signals on PB1 and PB2 , is it possible to do this or shall I change to o...

Result of logic operation on 8-bits data need to casts

Posted on May 16, 2017 at 23:42Hello,In STVD (+Cosmic) C compiler settings I choose *Display Errors & Warnings*.I wrote simple code:uint8_t a=0x01;uint8_t b=0x10;void test (uint8_t licz) { }void main (void) {    test (a & 0x01);    test (a | b);   ...

STM8L DISCOVERY ADC

Posted on May 14, 2017 at 21:52Hello,I want to create program that:1. Measure time2. Start one conversion of ADC3. After conversion show it on LCD (it's optional, but it would be great if it works)The 2nd point is problematic. I want to realize all ...

Artur L by Associate
  • 404 Views
  • 0 replies
  • 0 kudos

How change project name in STVD

Posted on April 30, 2017 at 19:48I'm using the STM8S-Discovery template in STVD. How can I change the name of a project?

How to select Std Library?

Posted on May 12, 2017 at 10:39Hi;As you seen above, Libraries List is unselectable. İ want to change them manually. Why is Libraries List unselectable?

0690X00000606xOQAQ.png

Which bootloader version is used by STM8S003F3?

Posted on May 10, 2017 at 21:29Hello,My team and I are designing a product using the STM8S003F3. We connect to a host controller using SPI. This works great!Now I want to enable firmware update functionality. I started to get into SWIM protocol when...

PWM input capture

Posted on October 27, 2016 at 14:45Hi ,We have a requirement to capture the PWM input at Timer2 channel 1.We are using STM8AF6266 micro.Requirement:We have to capture 2 PWM inputs received at Timer2 channel 1.1) Falling edge 100 - 0 % 200Hz signal i...

sbasanth by Associate
  • 630 Views
  • 1 replies
  • 0 kudos