文件名称:Output-PWM-from-PA0
介绍说明--下载内容来自于网络,使用问题请自行百度
实现从PA.0输出一个占空比可变的PWM波,开发环境:keil uvision4 -extern volatile u16 Pulse
u8 Flag_60ms
int main()
{
RCC_Configuration()
GPIO_Configuration()
TIM_PWMConfiguration()
NVIC_Configuration()
TIM_ToggleConfiguration()
GPIO_SetBits(GPIOA,GPIO_Pin_0)
USART1_Configuration()
SysTick_Configuration()
while(1)
{
if(Flag_60ms == 1)
{
Flag_60ms = 0
TIM2->CCR2= PID_calculate(&Control_left,Pulse)
}
}
}
u8 Flag_60ms
int main()
{
RCC_Configuration()
GPIO_Configuration()
TIM_PWMConfiguration()
NVIC_Configuration()
TIM_ToggleConfiguration()
GPIO_SetBits(GPIOA,GPIO_Pin_0)
USART1_Configuration()
SysTick_Configuration()
while(1)
{
if(Flag_60ms == 1)
{
Flag_60ms = 0
TIM2->CCR2= PID_calculate(&Control_left,Pulse)
}
}
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Output PWM from PA0/List/test.plg
Output PWM from PA0/Rvmak/PWM_out.opt.bak
Output PWM from PA0/Rvmak/PWM_out.Uv2.bak
Output PWM from PA0/Rvmak/PWM_out.uvopt
Output PWM from PA0/Rvmak/PWM_out.uvproj
Output PWM from PA0/Rvmak/PWM_out_Target 1.dep
Output PWM from PA0/Src/AD.c
Output PWM from PA0/Src/AD.h
Output PWM from PA0/Src/delay.c
Output PWM from PA0/Src/delay.h
Output PWM from PA0/Src/GPIO.c
Output PWM from PA0/Src/GPIO.h
Output PWM from PA0/Src/INT.c
Output PWM from PA0/Src/main.c
Output PWM from PA0/Src/NVIC.c
Output PWM from PA0/Src/NVIC.h
Output PWM from PA0/Src/PID.C
Output PWM from PA0/Src/PID.H
Output PWM from PA0/Src/RCC.c
Output PWM from PA0/Src/RCC.h
Output PWM from PA0/Src/stmlib/core_cm3.c
Output PWM from PA0/Src/stmlib/core_cm3.h
Output PWM from PA0/Src/stmlib/misc.c
Output PWM from PA0/Src/stmlib/misc.h
Output PWM from PA0/Src/stmlib/StartUp/startup_stm32f10x_hd.s
Output PWM from PA0/Src/stmlib/StartUp/startup_stm32f10x_ld.s
Output PWM from PA0/Src/stmlib/StartUp/startup_stm32f10x_md.s
Output PWM from PA0/Src/stmlib/stm32f10x.h
Output PWM from PA0/Src/stmlib/stm32f10x_adc.c
Output PWM from PA0/Src/stmlib/stm32f10x_adc.h
Output PWM from PA0/Src/stmlib/stm32f10x_bkp.c
Output PWM from PA0/Src/stmlib/stm32f10x_bkp.h
Output PWM from PA0/Src/stmlib/stm32f10x_can.c
Output PWM from PA0/Src/stmlib/stm32f10x_can.h
Output PWM from PA0/Src/stmlib/stm32f10x_conf.h
Output PWM from PA0/Src/stmlib/stm32f10x_crc.c
Output PWM from PA0/Src/stmlib/stm32f10x_crc.h
Output PWM from PA0/Src/stmlib/stm32f10x_dac.c
Output PWM from PA0/Src/stmlib/stm32f10x_dac.h
Output PWM from PA0/Src/stmlib/stm32f10x_dbgmcu.c
Output PWM from PA0/Src/stmlib/stm32f10x_dbgmcu.h
Output PWM from PA0/Src/stmlib/stm32f10x_dma.c
Output PWM from PA0/Src/stmlib/stm32f10x_dma.h
Output PWM from PA0/Src/stmlib/stm32f10x_exti.c
Output PWM from PA0/Src/stmlib/stm32f10x_exti.h
Output PWM from PA0/Src/stmlib/stm32f10x_flash.c
Output PWM from PA0/Src/stmlib/stm32f10x_flash.h
Output PWM from PA0/Src/stmlib/stm32f10x_fsmc.c
Output PWM from PA0/Src/stmlib/stm32f10x_fsmc.h
Output PWM from PA0/Src/stmlib/stm32f10x_gpio.c
Output PWM from PA0/Src/stmlib/stm32f10x_gpio.h
Output PWM from PA0/Src/stmlib/stm32f10x_i2c.c
Output PWM from PA0/Src/stmlib/stm32f10x_i2c.h
Output PWM from PA0/Src/stmlib/stm32f10x_iwdg.c
Output PWM from PA0/Src/stmlib/stm32f10x_iwdg.h
Output PWM from PA0/Src/stmlib/stm32f10x_pwr.c
Output PWM from PA0/Src/stmlib/stm32f10x_pwr.h
Output PWM from PA0/Src/stmlib/stm32f10x_rcc.c
Output PWM from PA0/Src/stmlib/stm32f10x_rcc.h
Output PWM from PA0/Src/stmlib/stm32f10x_rtc.c
Output PWM from PA0/Src/stmlib/stm32f10x_rtc.h
Output PWM from PA0/Src/stmlib/stm32f10x_sdio.c
Output PWM from PA0/Src/stmlib/stm32f10x_sdio.h
Output PWM from PA0/Src/stmlib/stm32f10x_spi.c
Output PWM from PA0/Src/stmlib/stm32f10x_spi.h
Output PWM from PA0/Src/stmlib/stm32f10x_tim.c
Output PWM from PA0/Src/stmlib/stm32f10x_tim.h
Output PWM from PA0/Src/stmlib/stm32f10x_usart.c
Output PWM from PA0/Src/stmlib/stm32f10x_usart.h
Output PWM from PA0/Src/stmlib/stm32f10x_wwdg.c
Output PWM from PA0/Src/stmlib/stm32f10x_wwdg.h
Output PWM from PA0/Src/stmlib/system_stm32f10x.c
Output PWM from PA0/Src/stmlib/system_stm32f10x.h
Output PWM from PA0/Src/SysTick.c
Output PWM from PA0/Src/SysTick.h
Output PWM from PA0/Src/TIM.c
Output PWM from PA0/Src/TIM.h
Output PWM from PA0/Src/USART.c
Output PWM from PA0/Src/USART.h
Output PWM from PA0/Src/stmlib/StartUp
Output PWM from PA0/Src/stmlib
Output PWM from PA0/List
Output PWM from PA0/Rvmak
Output PWM from PA0/Src
Output PWM from PA0
Output PWM from PA0/Rvmak/PWM_out.opt.bak
Output PWM from PA0/Rvmak/PWM_out.Uv2.bak
Output PWM from PA0/Rvmak/PWM_out.uvopt
Output PWM from PA0/Rvmak/PWM_out.uvproj
Output PWM from PA0/Rvmak/PWM_out_Target 1.dep
Output PWM from PA0/Src/AD.c
Output PWM from PA0/Src/AD.h
Output PWM from PA0/Src/delay.c
Output PWM from PA0/Src/delay.h
Output PWM from PA0/Src/GPIO.c
Output PWM from PA0/Src/GPIO.h
Output PWM from PA0/Src/INT.c
Output PWM from PA0/Src/main.c
Output PWM from PA0/Src/NVIC.c
Output PWM from PA0/Src/NVIC.h
Output PWM from PA0/Src/PID.C
Output PWM from PA0/Src/PID.H
Output PWM from PA0/Src/RCC.c
Output PWM from PA0/Src/RCC.h
Output PWM from PA0/Src/stmlib/core_cm3.c
Output PWM from PA0/Src/stmlib/core_cm3.h
Output PWM from PA0/Src/stmlib/misc.c
Output PWM from PA0/Src/stmlib/misc.h
Output PWM from PA0/Src/stmlib/StartUp/startup_stm32f10x_hd.s
Output PWM from PA0/Src/stmlib/StartUp/startup_stm32f10x_ld.s
Output PWM from PA0/Src/stmlib/StartUp/startup_stm32f10x_md.s
Output PWM from PA0/Src/stmlib/stm32f10x.h
Output PWM from PA0/Src/stmlib/stm32f10x_adc.c
Output PWM from PA0/Src/stmlib/stm32f10x_adc.h
Output PWM from PA0/Src/stmlib/stm32f10x_bkp.c
Output PWM from PA0/Src/stmlib/stm32f10x_bkp.h
Output PWM from PA0/Src/stmlib/stm32f10x_can.c
Output PWM from PA0/Src/stmlib/stm32f10x_can.h
Output PWM from PA0/Src/stmlib/stm32f10x_conf.h
Output PWM from PA0/Src/stmlib/stm32f10x_crc.c
Output PWM from PA0/Src/stmlib/stm32f10x_crc.h
Output PWM from PA0/Src/stmlib/stm32f10x_dac.c
Output PWM from PA0/Src/stmlib/stm32f10x_dac.h
Output PWM from PA0/Src/stmlib/stm32f10x_dbgmcu.c
Output PWM from PA0/Src/stmlib/stm32f10x_dbgmcu.h
Output PWM from PA0/Src/stmlib/stm32f10x_dma.c
Output PWM from PA0/Src/stmlib/stm32f10x_dma.h
Output PWM from PA0/Src/stmlib/stm32f10x_exti.c
Output PWM from PA0/Src/stmlib/stm32f10x_exti.h
Output PWM from PA0/Src/stmlib/stm32f10x_flash.c
Output PWM from PA0/Src/stmlib/stm32f10x_flash.h
Output PWM from PA0/Src/stmlib/stm32f10x_fsmc.c
Output PWM from PA0/Src/stmlib/stm32f10x_fsmc.h
Output PWM from PA0/Src/stmlib/stm32f10x_gpio.c
Output PWM from PA0/Src/stmlib/stm32f10x_gpio.h
Output PWM from PA0/Src/stmlib/stm32f10x_i2c.c
Output PWM from PA0/Src/stmlib/stm32f10x_i2c.h
Output PWM from PA0/Src/stmlib/stm32f10x_iwdg.c
Output PWM from PA0/Src/stmlib/stm32f10x_iwdg.h
Output PWM from PA0/Src/stmlib/stm32f10x_pwr.c
Output PWM from PA0/Src/stmlib/stm32f10x_pwr.h
Output PWM from PA0/Src/stmlib/stm32f10x_rcc.c
Output PWM from PA0/Src/stmlib/stm32f10x_rcc.h
Output PWM from PA0/Src/stmlib/stm32f10x_rtc.c
Output PWM from PA0/Src/stmlib/stm32f10x_rtc.h
Output PWM from PA0/Src/stmlib/stm32f10x_sdio.c
Output PWM from PA0/Src/stmlib/stm32f10x_sdio.h
Output PWM from PA0/Src/stmlib/stm32f10x_spi.c
Output PWM from PA0/Src/stmlib/stm32f10x_spi.h
Output PWM from PA0/Src/stmlib/stm32f10x_tim.c
Output PWM from PA0/Src/stmlib/stm32f10x_tim.h
Output PWM from PA0/Src/stmlib/stm32f10x_usart.c
Output PWM from PA0/Src/stmlib/stm32f10x_usart.h
Output PWM from PA0/Src/stmlib/stm32f10x_wwdg.c
Output PWM from PA0/Src/stmlib/stm32f10x_wwdg.h
Output PWM from PA0/Src/stmlib/system_stm32f10x.c
Output PWM from PA0/Src/stmlib/system_stm32f10x.h
Output PWM from PA0/Src/SysTick.c
Output PWM from PA0/Src/SysTick.h
Output PWM from PA0/Src/TIM.c
Output PWM from PA0/Src/TIM.h
Output PWM from PA0/Src/USART.c
Output PWM from PA0/Src/USART.h
Output PWM from PA0/Src/stmlib/StartUp
Output PWM from PA0/Src/stmlib
Output PWM from PA0/List
Output PWM from PA0/Rvmak
Output PWM from PA0/Src
Output PWM from PA0
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.