Thanks for the replay.This is my code...#include "stm8l15x_tim2.h"TIM2_DeInit();CLK_PeripheralClockConfig(CLK_Peripheral_TIM2, ENABLE);GPIO_Init(GPIOB, GPIO_Pin_2, GPIO_Mode_Out_PP_High_Fast);TIM2_TimeBaseInit(TIM2_Prescaler_1, TIM2_CounterMode_Up, 1...