STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

In stm8s0003f3 ,I am reading analog voltage.I am getting the value in watch as 1544,which is not expected .Can some one help what may be the fault in the code. supply vge is 1.8v

void Init_ADC(void) {    ADC1_DeInit(); ADC1_Init(ADC1_CONVERSIONMODE_CONTINUOUS, ADC1_CHANNEL_5, ADC1_PRESSEL_FCPU_D2,         ADC1_EXTTRIG_TIM, DISABLE, ADC1_ALIGN_RIGHT, ADC1_SCHMITTTRIG_CHANNEL5,DISABLE);  }void ADC_Read(unsigned int MV) { ADC1_...

SRAM.11 by Associate III
  • 619 Views
  • 2 replies
  • 0 kudos

How to detect external reset reason through NRST in stm8?

Hello all. There are 9 sources of reset possible in STM8AF52xx according to the reference manual.They are :External reset through the NRST pin• Power-on reset (POR)• Brown-out Reset (BOR)• Independent watchdog reset (IWDG)• Window watchdog reset (WWD...

raja1 by Associate II
  • 1066 Views
  • 1 replies
  • 1 kudos

Why is my uart rx not working?

Code shown in details. I am guessing something is wrong with clocks - this doesn't make sense though since tx is working just fine. I see signals just fine on the scope. Both tx and rx are high during no transmit. Clocks and initialization code shown...

DBles.1 by Associate II
  • 3083 Views
  • 11 replies
  • 0 kudos