Others: hardware and software

Discuss hardware and software design challenges, including NOR flash storage, OTA updates, component ID, and thermal management.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM8L051 125khz PWM not work

I have new application used stm8l051, The MCU using timer2(GPIOB2) to generator 125khz PWM, duty cycle from 0% to 100% every 500ms with 16Mhz clock source.void Timer2_PWM_Init(void){ GPIO_Init(GPIOB, GPIO_Pin_2, GPIO_Mode_Out_PP_High_Fast);  CLK_Peri...

KCheu.1 by Associate
  • 845 Views
  • 0 replies
  • 0 kudos

Save initial EEPROM data when burning MCU

When initially burning the MCU, I want to save some EEPROM data. Lets say the data 123 is to be saved in location 1 of EEPROM. If I write the below C code before the main function, will it work? Once the data is stored the first time the program is b...

PiSquared by Associate II
  • 3152 Views
  • 5 replies
  • 0 kudos