文件名称:driverProgram
介绍说明--下载内容来自于网络,使用问题请自行百度
开发环境:keil uVision4 。 无刷直流马达驱动源码参考 。
1:滴答中断用做启动和停止判断
2:AD中断分两部分:(1)注入中断读取电机电流和PID运算(2)规则中断读取转把电压
3:TIM1触发中断,进行换向
4:TIM3中断分两部分:溢出中断进行堵转计数,霍尔中断用来控制TIM1换向和获得转速
5:键盘改变PID参数-int main(void)
{
u16 temp
/*****************************/
SYS_Configuration() // data_reset() //
pp.kp=1
pp.ki=1
pp.kd=3
/*************************/
lcd_init() // lcd_clr() // *bled=1 // lcd_write_String(1,0,"*************")
lcd_disp16_16(1,1,0) //
lcd_disp16_16(3,1,1) //
lcd_disp16_16(5,1,2) //
lcd_disp16_16(7,1,3) //
lcd_disp16_16(2,3,4) //
lcd_disp16_16(4,3,5) //
lcd_disp16_16(6,3,6) //
lcd_write_String(1,5,"*************")
Delay(10000000)
lcd_clr() //
lcd_write_String(0,0,"SP=")
lcd_write_String(0,1,"SET=")
lcd_write_String(0,2,"T1CCR=")
lcd_write_String(0,3,"JADI")
lcd_write_String(0,4,"JADD")
lcd_16_bcd(36,0,feedback_value,0) //
lcd_16_bcd(24,1,set_value,0) //
lcd_16_bcd(36,2,pwm_out,0) //
/**************main***************/
while(1)
1:滴答中断用做启动和停止判断
2:AD中断分两部分:(1)注入中断读取电机电流和PID运算(2)规则中断读取转把电压
3:TIM1触发中断,进行换向
4:TIM3中断分两部分:溢出中断进行堵转计数,霍尔中断用来控制TIM1换向和获得转速
5:键盘改变PID参数-int main(void)
{
u16 temp
/*****************************/
SYS_Configuration() // data_reset() //
pp.kp=1
pp.ki=1
pp.kd=3
/*************************/
lcd_init() // lcd_clr() // *bled=1 // lcd_write_String(1,0,"*************")
lcd_disp16_16(1,1,0) //
lcd_disp16_16(3,1,1) //
lcd_disp16_16(5,1,2) //
lcd_disp16_16(7,1,3) //
lcd_disp16_16(2,3,4) //
lcd_disp16_16(4,3,5) //
lcd_disp16_16(6,3,6) //
lcd_write_String(1,5,"*************")
Delay(10000000)
lcd_clr() //
lcd_write_String(0,0,"SP=")
lcd_write_String(0,1,"SET=")
lcd_write_String(0,2,"T1CCR=")
lcd_write_String(0,3,"JADI")
lcd_write_String(0,4,"JADD")
lcd_16_bcd(36,0,feedback_value,0) //
lcd_16_bcd(24,1,set_value,0) //
lcd_16_bcd(36,2,pwm_out,0) //
/**************main***************/
while(1)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
driverProgram/bldc/Boot_flash/Boot_fash.axf
driverProgram/bldc/Boot_flash/Boot_fash.hex
driverProgram/bldc/Boot_flash/Boot_fash.htm
driverProgram/bldc/Boot_flash/Boot_fash.lnp
driverProgram/bldc/Boot_flash/Boot_fash.plg
driverProgram/bldc/Boot_flash/Boot_fash.sct
driverProgram/bldc/Boot_flash/Boot_fash.tra
driverProgram/bldc/Boot_flash/Boot_fash_sct.Bak
driverProgram/bldc/Boot_flash/Boot_flash.axf
driverProgram/bldc/Boot_flash/Boot_flash.hex
driverProgram/bldc/Boot_flash/Boot_flash.htm
driverProgram/bldc/Boot_flash/Boot_flash.lnp
driverProgram/bldc/Boot_flash/Boot_flash.plg
driverProgram/bldc/Boot_flash/Boot_flash.sct
driverProgram/bldc/Boot_flash/Boot_flash.tra
driverProgram/bldc/Boot_flash/cortexm3_macro.o
driverProgram/bldc/Boot_flash/main.crf
driverProgram/bldc/Boot_flash/main.d
driverProgram/bldc/Boot_flash/main.o
driverProgram/bldc/Boot_flash/STM32F10x.o
driverProgram/bldc/Boot_flash/stm32f10x_it.crf
driverProgram/bldc/Boot_flash/stm32f10x_it.d
driverProgram/bldc/Boot_flash/stm32f10x_it.o
driverProgram/bldc/Boot_flash/syster_config.crf
driverProgram/bldc/Boot_flash/syster_config.d
driverProgram/bldc/Boot_flash/syster_config.o
driverProgram/bldc/Boot_flash/_5110.crf
driverProgram/bldc/Boot_flash/_5110.d
driverProgram/bldc/Boot_flash/_5110.o
driverProgram/bldc/Boot_ram/Boot_ram.axf
driverProgram/bldc/Boot_ram/Boot_ram.htm
driverProgram/bldc/Boot_ram/Boot_ram.lnp
driverProgram/bldc/Boot_ram/Boot_ram.plg
driverProgram/bldc/Boot_ram/Boot_ram.sct
driverProgram/bldc/Boot_ram/Boot_ram.tra
driverProgram/bldc/Boot_ram/Boot_ram_sct.Bak
driverProgram/bldc/Boot_ram/cortexm3_macro.o
driverProgram/bldc/Boot_ram/ExtDll.iex
driverProgram/bldc/Boot_ram/main.crf
driverProgram/bldc/Boot_ram/main.d
driverProgram/bldc/Boot_ram/main.o
driverProgram/bldc/Boot_ram/STM32F10x.o
driverProgram/bldc/Boot_ram/stm32f10x_it.crf
driverProgram/bldc/Boot_ram/stm32f10x_it.d
driverProgram/bldc/Boot_ram/stm32f10x_it.o
driverProgram/bldc/Boot_ram/syster_config.crf
driverProgram/bldc/Boot_ram/syster_config.d
driverProgram/bldc/Boot_ram/syster_config.o
driverProgram/bldc/Boot_ram/_5110.crf
driverProgram/bldc/Boot_ram/_5110.d
driverProgram/bldc/Boot_ram/_5110.o
driverProgram/bldc/dcmot.Opt
driverProgram/bldc/dcmot.plg
driverProgram/bldc/dcmot.Uv2
driverProgram/bldc/dcmot_Boot_flash.dep
driverProgram/bldc/dcmot_Boot_ram.dep
driverProgram/bldc/dcmot_Opt.Bak
driverProgram/bldc/dcmot_Target 1.dep
driverProgram/bldc/dcmot_Uv2.Bak
driverProgram/bldc/JLinkArm_Boot_flash.ini
driverProgram/bldc/JLinkArm_Boot_ram.ini
driverProgram/bldc/listing/Boot_fash.map
driverProgram/bldc/listing/Boot_flash.map
driverProgram/bldc/listing/Boot_ram.map
driverProgram/bldc/listing/cortexm3_macro.lst
driverProgram/bldc/listing/STM32F10x.lst
driverProgram/bldc/RAM.ini
driverProgram/bldc/STM32F10x.s
driverProgram/bldc/user/main.c
driverProgram/bldc/user/stm32f10defgpio_out.h
driverProgram/bldc/user/stm32f10x_it.c
driverProgram/bldc/user/syster_config.c
driverProgram/bldc/user/_5110.c
driverProgram/bldc/user/_5110.h
driverProgram/Library/inc/cortexm3_macro.h
driverProgram/Library/inc/stm32f10x_adc.h
driverProgram/Library/inc/stm32f10x_bkp.h
driverProgram/Library/inc/stm32f10x_can.h
driverProgram/Library/inc/stm32f10x_dma.h
driverProgram/Library/inc/stm32f10x_exti.h
driverProgram/Library/inc/stm32f10x_flash.h
driverProgram/Library/inc/stm32f10x_gpio.h
driverProgram/Library/inc/stm32f10x_i2c.h
driverProgram/Library/inc/stm32f10x_iwdg.h
driverProgram/Library/inc/stm32f10x_lib.h
driverProgram/Library/inc/stm32f10x_map.h
driverProgram/Library/inc/stm32f10x_nvic.h
driverProgram/Library/inc/stm32f10x_pwr.h
driverProgram/Library/inc/stm32f10x_rcc.h
driverProgram/Library/inc/stm32f10x_rtc.h
driverProgram/Library/inc/stm32f10x_spi.h
driverProgram/Library/inc/stm32f10x_systick.h
driverProgram/Library/inc/stm32f10x_tim.h
driverProgram/Library/inc/stm32f10x_tim1.h
driverProgram/Library/inc/stm32f10x_type.h
driverProgram/Library/inc/stm32f10x_usart.h
driverProgram/Library/inc/stm32f10x_wwdg.h
driverProgram/Library/inc/stm32gpio_out.h
driverProgram/Library/src/STM32F10xR.LIB
driverProgram/Library/src/stm32f10x_adc.c
driverProgram/Library/src/stm32f10x_bkp.c
driverProgram/Library/src/stm32f10x_can.c
driverProgram/Library/src/stm32f10x_dma.c
driverProgram/Library/src/stm32f10x_exti.c
driverProgram/Library/src/stm32f10x_flash.c
driverProgram/Library/src/stm32f10x_gpio.c
driverProgram/Library/src/stm32f10x_i2c.c
driverProgram/Library/src/stm32f10x_iwdg.c
driverProgram/Library/src/stm32f10x_lib.c
driverProgram/Library/src/stm32f10x_nvic.c
driverProgram/Library/src/stm32f10x_pwr.c
driverProgram/Library/src/stm32f10x_rcc.c
driverProgram/Library/src/stm32f10x_rtc.c
driverProgram/Library/src/stm32f10x_spi.c
driverProgram/Library/src/stm32f10x_systick.c
driverProgram/Library/src/stm32f10x_tim.c
driverProgram/Library/src/stm32f10x_tim1.c
driverProgram/Library/src/stm32f10x_usart.c
driverProgram/Library/src/stm32f10x_wwdg.c
driverProgram/Library/startup/cortexm3_macro.s
driverProgram/Library/startup/STM32F10x.s
driverProgram/bldc/Boot_flash
driverProgram/bldc/Boot_ram
driverProgram/bldc/inc
driverProgram/bldc/listing
driverProgram/bldc/Boot_flash/Boot_fash.hex
driverProgram/bldc/Boot_flash/Boot_fash.htm
driverProgram/bldc/Boot_flash/Boot_fash.lnp
driverProgram/bldc/Boot_flash/Boot_fash.plg
driverProgram/bldc/Boot_flash/Boot_fash.sct
driverProgram/bldc/Boot_flash/Boot_fash.tra
driverProgram/bldc/Boot_flash/Boot_fash_sct.Bak
driverProgram/bldc/Boot_flash/Boot_flash.axf
driverProgram/bldc/Boot_flash/Boot_flash.hex
driverProgram/bldc/Boot_flash/Boot_flash.htm
driverProgram/bldc/Boot_flash/Boot_flash.lnp
driverProgram/bldc/Boot_flash/Boot_flash.plg
driverProgram/bldc/Boot_flash/Boot_flash.sct
driverProgram/bldc/Boot_flash/Boot_flash.tra
driverProgram/bldc/Boot_flash/cortexm3_macro.o
driverProgram/bldc/Boot_flash/main.crf
driverProgram/bldc/Boot_flash/main.d
driverProgram/bldc/Boot_flash/main.o
driverProgram/bldc/Boot_flash/STM32F10x.o
driverProgram/bldc/Boot_flash/stm32f10x_it.crf
driverProgram/bldc/Boot_flash/stm32f10x_it.d
driverProgram/bldc/Boot_flash/stm32f10x_it.o
driverProgram/bldc/Boot_flash/syster_config.crf
driverProgram/bldc/Boot_flash/syster_config.d
driverProgram/bldc/Boot_flash/syster_config.o
driverProgram/bldc/Boot_flash/_5110.crf
driverProgram/bldc/Boot_flash/_5110.d
driverProgram/bldc/Boot_flash/_5110.o
driverProgram/bldc/Boot_ram/Boot_ram.axf
driverProgram/bldc/Boot_ram/Boot_ram.htm
driverProgram/bldc/Boot_ram/Boot_ram.lnp
driverProgram/bldc/Boot_ram/Boot_ram.plg
driverProgram/bldc/Boot_ram/Boot_ram.sct
driverProgram/bldc/Boot_ram/Boot_ram.tra
driverProgram/bldc/Boot_ram/Boot_ram_sct.Bak
driverProgram/bldc/Boot_ram/cortexm3_macro.o
driverProgram/bldc/Boot_ram/ExtDll.iex
driverProgram/bldc/Boot_ram/main.crf
driverProgram/bldc/Boot_ram/main.d
driverProgram/bldc/Boot_ram/main.o
driverProgram/bldc/Boot_ram/STM32F10x.o
driverProgram/bldc/Boot_ram/stm32f10x_it.crf
driverProgram/bldc/Boot_ram/stm32f10x_it.d
driverProgram/bldc/Boot_ram/stm32f10x_it.o
driverProgram/bldc/Boot_ram/syster_config.crf
driverProgram/bldc/Boot_ram/syster_config.d
driverProgram/bldc/Boot_ram/syster_config.o
driverProgram/bldc/Boot_ram/_5110.crf
driverProgram/bldc/Boot_ram/_5110.d
driverProgram/bldc/Boot_ram/_5110.o
driverProgram/bldc/dcmot.Opt
driverProgram/bldc/dcmot.plg
driverProgram/bldc/dcmot.Uv2
driverProgram/bldc/dcmot_Boot_flash.dep
driverProgram/bldc/dcmot_Boot_ram.dep
driverProgram/bldc/dcmot_Opt.Bak
driverProgram/bldc/dcmot_Target 1.dep
driverProgram/bldc/dcmot_Uv2.Bak
driverProgram/bldc/JLinkArm_Boot_flash.ini
driverProgram/bldc/JLinkArm_Boot_ram.ini
driverProgram/bldc/listing/Boot_fash.map
driverProgram/bldc/listing/Boot_flash.map
driverProgram/bldc/listing/Boot_ram.map
driverProgram/bldc/listing/cortexm3_macro.lst
driverProgram/bldc/listing/STM32F10x.lst
driverProgram/bldc/RAM.ini
driverProgram/bldc/STM32F10x.s
driverProgram/bldc/user/main.c
driverProgram/bldc/user/stm32f10defgpio_out.h
driverProgram/bldc/user/stm32f10x_it.c
driverProgram/bldc/user/syster_config.c
driverProgram/bldc/user/_5110.c
driverProgram/bldc/user/_5110.h
driverProgram/Library/inc/cortexm3_macro.h
driverProgram/Library/inc/stm32f10x_adc.h
driverProgram/Library/inc/stm32f10x_bkp.h
driverProgram/Library/inc/stm32f10x_can.h
driverProgram/Library/inc/stm32f10x_dma.h
driverProgram/Library/inc/stm32f10x_exti.h
driverProgram/Library/inc/stm32f10x_flash.h
driverProgram/Library/inc/stm32f10x_gpio.h
driverProgram/Library/inc/stm32f10x_i2c.h
driverProgram/Library/inc/stm32f10x_iwdg.h
driverProgram/Library/inc/stm32f10x_lib.h
driverProgram/Library/inc/stm32f10x_map.h
driverProgram/Library/inc/stm32f10x_nvic.h
driverProgram/Library/inc/stm32f10x_pwr.h
driverProgram/Library/inc/stm32f10x_rcc.h
driverProgram/Library/inc/stm32f10x_rtc.h
driverProgram/Library/inc/stm32f10x_spi.h
driverProgram/Library/inc/stm32f10x_systick.h
driverProgram/Library/inc/stm32f10x_tim.h
driverProgram/Library/inc/stm32f10x_tim1.h
driverProgram/Library/inc/stm32f10x_type.h
driverProgram/Library/inc/stm32f10x_usart.h
driverProgram/Library/inc/stm32f10x_wwdg.h
driverProgram/Library/inc/stm32gpio_out.h
driverProgram/Library/src/STM32F10xR.LIB
driverProgram/Library/src/stm32f10x_adc.c
driverProgram/Library/src/stm32f10x_bkp.c
driverProgram/Library/src/stm32f10x_can.c
driverProgram/Library/src/stm32f10x_dma.c
driverProgram/Library/src/stm32f10x_exti.c
driverProgram/Library/src/stm32f10x_flash.c
driverProgram/Library/src/stm32f10x_gpio.c
driverProgram/Library/src/stm32f10x_i2c.c
driverProgram/Library/src/stm32f10x_iwdg.c
driverProgram/Library/src/stm32f10x_lib.c
driverProgram/Library/src/stm32f10x_nvic.c
driverProgram/Library/src/stm32f10x_pwr.c
driverProgram/Library/src/stm32f10x_rcc.c
driverProgram/Library/src/stm32f10x_rtc.c
driverProgram/Library/src/stm32f10x_spi.c
driverProgram/Library/src/stm32f10x_systick.c
driverProgram/Library/src/stm32f10x_tim.c
driverProgram/Library/src/stm32f10x_tim1.c
driverProgram/Library/src/stm32f10x_usart.c
driverProgram/Library/src/stm32f10x_wwdg.c
driverProgram/Library/startup/cortexm3_macro.s
driverProgram/Library/startup/STM32F10x.s
driverProgram/bldc/Boot_flash
driverProgram/bldc/Boot_ram
driverProgram/bldc/inc
driverProgram/bldc/listing
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.