STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Switch relay synchronously in 0 passage (50Hz)

i am trying to switch a relay via the stm8s001 processor synchronously in the 0 pass. how could I realize that.i have an imput signal of 50 Hz. I can also start the timer, but I don't know how to switch the relay on exactly in the 0 cycle.(i watch th...

Resolved! STM8AF Bootloader CAN write memory.

I'm trying to write a program to the microcontroller through the bootloader via the СAN interface.First I pass message ID 0x7f to activate bootloader. (ID=0x02, data=0x79)Then I transfer the file "E_W_ROUTINEs_128K_ver_2.0.s19" in binary form to addr...

MR.9 by Associate
  • 960 Views
  • 1 replies
  • 0 kudos

How to generate PWM with offset / delay?

I need to generate two signals as shown below.I need to be able to adjust A and B independently. Is there some way to use TIMER1's OC1 and OC2? I can't figure out how to make an offset in the output compares - everything seems to start at the main co...

0693W00000Dq2rmQAB.png
EAnde.3 by Associate II
  • 1982 Views
  • 4 replies
  • 0 kudos

How to SWITCH HSI to LSE for STM8L152C6 discovery board?

When I switch HSI to LSE using IAR, there is always an error that "Failed to get execution status: SWIM error [30004]: Comm timeout"There is switch function:void HSI_TO_LSE(void){   if(CLK_SCSR!=0x08)    // if LSE is not selected as the system clock ...

FCai.1 by Associate
  • 545 Views
  • 0 replies
  • 0 kudos

How to generate a sinusoidal PWM with variable frequency?

I'm trying to generate a sinusoidal PWM on STM8, but it's for an equipmetn that the user will change the frequency of the output sine wave while the PWM is running. I was able to generate a sinusoidal pwm easily for a fixed frequency, using a table I...

Triangle signal at the CCO Output (Port C4) / STM8S001JM3

Hi,I generate 2 mhz from the PORT / PIN C4 (CCO).The problem is that instead of a square signal, I get a triangle signal.What could be the reason????On PORT / PIN A3 i can generate a square signal, but not on C4I Use the STM8-SO8-DISCO Board in which...

STM8S clock and serial port initialization problems

I am using an IAR compilation environment, the microcontroller is STM8S105C4T6, but in the clock initialization, CLK__CKDIVR=0x00; the CLK__CKDIVR in this sentence keeps prompting that this function cannot be found.And it is the same when initializin...

SNorm.1 by Associate III
  • 501 Views
  • 1 replies
  • 0 kudos