Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Embeded-SCM Develop SCM
Title: example1_TIM Download
 Description: This example shows how to use peripherals the TIM2 to produce four different frequencies of the signal. The TIM2 clock is set to 36 MHz, the prescaler is set to 2, use the output- flip mode (Output Compare Toggle Mode). TIM2 counter clock can be expressed as: TIM2 is counter clock = TIMxCLK/(prescaler. Ppls1) to 12 MHz 32768 set TIM2_CCR1 register, the CC1 update frequency of the TIM2 the counter clock frequency divided by the CCR1 register value, 366.2 Hz,. Therefore, TIM2 channel 1 can produce a periodic signal with a frequency of 183.1 Hz. The same token, value register TIM2_CCR2, TIM2_CCR3 and TIM2_CCR4, TIM2 is channel 2 can produce a frequency of 366.3 Hz periodic signal TIM2 is channel 3 can produce a frequency of 732.4 Hz periodic signal TIM2 is channel 4 can produce a frequency of 1464.8 Hz periodic signal. Each output can be observed through the oscilloscope.
 Downloaders recently: [More information of uploader pengfl2010]
 To Search:
File list (Check if you may need any files):
example1_TIM\App\bsp.c
............\...\bsp.h
............\...\main.c
............\...\stm32f10x_conf.h
............\...\stm32f10x_it.c
............\...\stm32f10x_it.h
............\FWLib\inc\cortexm3_macro.h
............\.....\...\stm32f10x_adc.h
............\.....\...\stm32f10x_bkp.h
............\.....\...\stm32f10x_can.h
............\.....\...\stm32f10x_crc.h
............\.....\...\stm32f10x_dac.h
............\.....\...\stm32f10x_dbgmcu.h
............\.....\...\stm32f10x_dma.h
............\.....\...\stm32f10x_exti.h
............\.....\...\stm32f10x_flash.h
............\.....\...\stm32f10x_fsmc.h
............\.....\...\stm32f10x_gpio.h
............\.....\...\stm32f10x_i2c.h
............\.....\...\stm32f10x_iwdg.h
............\.....\...\stm32f10x_lib.h
............\.....\...\stm32f10x_map.h
............\.....\...\stm32f10x_nvic.h
............\.....\...\stm32f10x_pwr.h
............\.....\...\stm32f10x_rcc.h
............\.....\...\stm32f10x_rtc.h
............\.....\...\stm32f10x_sdio.h
............\.....\...\stm32f10x_spi.h
............\.....\...\stm32f10x_systick.h
............\.....\...\stm32f10x_tim.h
............\.....\...\stm32f10x_tim1.h
............\.....\...\stm32f10x_type.h
............\.....\...\stm32f10x_usart.h
............\.....\...\stm32f10x_wwdg.h
............\.....\src\stm32f10x_adc.c
............\.....\...\stm32f10x_bkp.c
............\.....\...\stm32f10x_can.c
............\.....\...\stm32f10x_crc.c
............\.....\...\stm32f10x_dac.c
............\.....\...\stm32f10x_dbgmcu.c
............\.....\...\stm32f10x_dma.c
............\.....\...\stm32f10x_exti.c
............\.....\...\stm32f10x_flash.c
............\.....\...\stm32f10x_fsmc.c
............\.....\...\stm32f10x_gpio.c
............\.....\...\stm32f10x_i2c.c
............\.....\...\stm32f10x_iwdg.c
............\.....\...\stm32f10x_lib.c
............\.....\...\stm32f10x_nvic.c
............\.....\...\stm32f10x_pwr.c
............\.....\...\stm32f10x_rcc.c
............\.....\...\stm32f10x_rtc.c
............\.....\...\stm32f10x_sdio.c
............\.....\...\stm32f10x_spi.c
............\.....\...\stm32f10x_systick.c
............\.....\...\stm32f10x_tim.c
............\.....\...\stm32f10x_tim1.c
............\.....\...\stm32f10x_usart.c
............\.....\...\stm32f10x_wwdg.c
............\project\cortexm3_macro.s
............\.......\Debug\Exe\example1_TIM.out
............\.......\.....\Obj\bsp.o
............\.......\.....\...\bsp.pbi
............\.......\.....\...\cortexm3_macro.o
............\.......\.....\...\example1_TIM.pbd
............\.......\.....\...\main.o
............\.......\.....\...\main.pbi
............\.......\.....\...\stm32f10x_flash.o
............\.......\.....\...\stm32f10x_flash.pbi
............\.......\.....\...\stm32f10x_gpio.o
............\.......\.....\...\stm32f10x_gpio.pbi
............\.......\.....\...\stm32f10x_it.o
............\.......\.....\...\stm32f10x_it.pbi
............\.......\.....\...\stm32f10x_lib.o
............\.......\.....\...\stm32f10x_lib.pbi
............\.......\.....\...\stm32f10x_nvic.o
............\.......\.....\...\stm32f10x_nvic.pbi
............\.......\.....\...\stm32f10x_rcc.o
............\.......\.....\...\stm32f10x_rcc.pbi
............\.......\.....\...\stm32f10x_tim.o
............\.......\.....\...\stm32f10x_tim.pbi
............\.......\.....\...\stm32f10x_vector.o
............\.......\.....\...\stm32f10x_vector.pbi
............\.......\example1_TIM.dep
............\.......\example1_TIM.ewd
............\.......\example1_TIM.ewp
............\.......\example1_TIM.eww
............\.......\lnkarm_flash.xcl
............\.......\lnkarm_ram.xcl
............\.......\settings\example1_TIM.cspy.bat
............\.......\........\example1_TIM.dbgdt
............\.......\........\example1_TIM.dni
............\.......\........\example1_TIM.wsdt
............\.......\........\example1_TIM_Debug.jlink
............\.......\stm32f10x_flash.icf
............\.......\stm32f10x_ram.icf
............\.......\stm32f10x_vector.c
............\.......\Debug\Exe
............\.......\.....\List
............\.......\.....\Obj
    

CodeBus www.codebus.net