Description: This routine is based on the STM8 microcontroller timer 2 design, which contains a timer 2 driver!
To Search:
File list (Check if you may need any files):
8-TIM2\FWlib\inc\stm8s.h
......\.....\...\stm8s_adc1.h
......\.....\...\stm8s_adc2.h
......\.....\...\stm8s_awu.h
......\.....\...\stm8s_beep.h
......\.....\...\stm8s_can.h
......\.....\...\stm8s_clk.h
......\.....\...\stm8s_exti.h
......\.....\...\stm8s_flash.h
......\.....\...\stm8s_gpio.h
......\.....\...\stm8s_i2c.h
......\.....\...\stm8s_itc.h
......\.....\...\stm8s_iwdg.h
......\.....\...\stm8s_rst.h
......\.....\...\stm8s_spi.h
......\.....\...\stm8s_tim1.h
......\.....\...\stm8s_tim2.h
......\.....\...\stm8s_tim3.h
......\.....\...\stm8s_tim4.h
......\.....\...\stm8s_tim5.h
......\.....\...\stm8s_tim6.h
......\.....\...\stm8s_uart1.h
......\.....\...\stm8s_uart2.h
......\.....\...\stm8s_uart3.h
......\.....\...\stm8s_wwdg.h
......\.....\src\stm8s_adc1.c
......\.....\...\stm8s_adc2.c
......\.....\...\stm8s_awu.c
......\.....\...\stm8s_beep.c
......\.....\...\stm8s_can.c
......\.....\...\stm8s_clk.c
......\.....\...\stm8s_exti.c
......\.....\...\stm8s_flash.c
......\.....\...\stm8s_gpio.c
......\.....\...\stm8s_i2c.c
......\.....\...\stm8s_itc.c
......\.....\...\stm8s_iwdg.c
......\.....\...\stm8s_rst.c
......\.....\...\stm8s_spi.c
......\.....\...\stm8s_tim1.c
......\.....\...\stm8s_tim2.c
......\.....\...\stm8s_tim3.c
......\.....\...\stm8s_tim4.c
......\.....\...\stm8s_tim5.c
......\.....\...\stm8s_tim6.c
......\.....\...\stm8s_uart1.c
......\.....\...\stm8s_uart2.c
......\.....\...\stm8s_uart3.c
......\.....\...\stm8s_wwdg.c
......\Project\Debug\Exe\TIM2.hex
......\.......\.....\...\TIM2.out
......\.......\.....\Obj\beep.o
......\.......\.....\...\led.o
......\.......\.....\...\main.o
......\.......\.....\...\pwm.o
......\.......\.....\...\stm8s_clk.o
......\.......\.....\...\stm8s_flash.o
......\.......\.....\...\stm8s_gpio.o
......\.......\.....\...\stm8s_interruput.o
......\.......\.....\...\stm8s_tim2.o
......\.......\.....\...\tim2.o
......\.......\.....\...\TIM2.pbd
......\.......\settings\TIM2.cspy.bat
......\.......\........\TIM2.dbgdt
......\.......\........\TIM2.dni
......\.......\........\TIM2.wsdt
......\.......\TIM2.dep
......\.......\TIM2.ewd
......\.......\TIM2.ewp
......\.......\TIM2.eww
......\USER\beep.c
......\....\beep.h
......\....\led.c
......\....\led.h
......\....\main.c
......\....\pwm.c
......\....\pwm.h
......\....\stm8s_conf.h
......\....\stm8s_interruput.c
......\....\tim2.c
......\....\tim2.h
......\Project\Debug\Exe
......\.......\.....\List
......\.......\.....\Obj
......\FWlib\inc
......\.....\src
......\Project\Debug
......\.......\settings
......\FWlib
......\Project
......\USER
8-TIM2