STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

hi guys! i have a discovery stm8s003k board and when i tested a program for cco capability it seems cco will never be stable and program always remain in line : while(CLK_GetFlagStatus(CLK_FLAG_CCORDY) == FALSE); codeand more explain is in detail.

i tested it with below code and ieven change prescalers for lower and higher frequency , i also check it with external crystal (and change the code) but it remains in while(CLK_GetFlagStatus(CLK_FLAG_CCORDY) == FALSE);for ever . when i debug the cod...

akhan.1 by Associate II
  • 283 Views
  • 0 replies
  • 0 kudos

What is I2C FREQR register used for?

Hi =) I am using a STM8L151 but I am pretty sure this is the same for any STM8 with i2c.The register I2C_FREQR is described in:page 507 of the RM0031: https://www.st.com/resource/en/reference_manual/cd00218714-stm8l050j3-stm8l051f3-stm8l052c6-stm8l05...

0693W000006FQDFQA4.png 0693W000006FQDUQA4.png
SLasn.1 by Associate III
  • 393 Views
  • 2 replies
  • 0 kudos

STM8L TIM2 PWM Signal Generation

Hello Guys,I am using STM8L board and would like to learn how can I generate a PWM Signal at the output port with TIM2. How should I set the configuration?Thank you

AIpek.1 by Associate
  • 494 Views
  • 1 replies
  • 0 kudos

STM8L Timer Initiation problem

Hello,I am new to ST processors. Here is the issue:I am trying to setup Timer 3 for interrupt, Code: TIM3_DeInit(); CLK_PeripheralClockConfig(CLK_PCKENR1_TIM3, ENABLE); TIM3_TimeBaseInit(TIM3_Prescaler_64, TIM3_CounterMode_Down, 2500);    TIM3_Set...

TXu.2 by Associate
  • 393 Views
  • 1 replies
  • 0 kudos

Resolved! how can i use sprintf()

i want bto use sprintf() in my application what libraries i have to use

Trinu by Associate III
  • 1321 Views
  • 5 replies
  • 0 kudos

How to solve this error???

i am adding stm8s.h header file and getting this error.i dont understand why i am getting this error.errors are...Compiling main.c...cxstm8 -i"..\..\..\..\..\..\..\..\program files\stmicroelectronics\st_toolset\include" -i"..\..\..\data manual\stm8s...

MAnsa.1 by Associate II
  • 917 Views
  • 2 replies
  • 0 kudos