I am working on PWM signal and the following code is not responding properly. Can someone explain where I am making a mistake. I need to generate pwm signal on PB0 (timer ch1)
/* MAIN.C file * * Copyright (c) 2002-2005 STMicroelectronics */#include <iostm8l.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <stdint.h>#include "defs.h"unsigned int count = 0;unsigned int pwm_duty = 0x0000;void TIM2_SetCompar...