文件名称:driverProgram

  • 所属分类:
  • 单片机(51,AVR,MSP430等)
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 1.25mb
  • 下载次数:
  • 0次
  • 提 供 者:
  • serg*****
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

开发环境: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)

 
(系统自动生成,下载前可以参看下载内容)

下载文件列表

driverProgram\bldc\Boot_flash\Boot_fash.axf

.............\....\..........\Boot_fash.hex

.............\....\..........\Boot_fash.htm

.............\....\..........\Boot_fash.lnp

.............\....\..........\Boot_fash.plg

.............\....\..........\Boot_fash.sct

.............\....\..........\Boot_fash.tra

.............\....\..........\Boot_fash_sct.Bak

.............\....\..........\Boot_flash.axf

.............\....\..........\Boot_flash.hex

.............\....\..........\Boot_flash.htm

.............\....\..........\Boot_flash.lnp

.............\....\..........\Boot_flash.plg

.............\....\..........\Boot_flash.sct

.............\....\..........\Boot_flash.tra

.............\....\..........\cortexm3_macro.o

.............\....\..........\main.crf

.............\....\..........\main.d

.............\....\..........\main.o

.............\....\..........\STM32F10x.o

.............\....\..........\stm32f10x_it.crf

.............\....\..........\stm32f10x_it.d

.............\....\..........\stm32f10x_it.o

.............\....\..........\syster_config.crf

.............\....\..........\syster_config.d

.............\....\..........\syster_config.o

.............\....\..........\_5110.crf

.............\....\..........\_5110.d

.............\....\..........\_5110.o

.............\....\.....ram\Boot_ram.axf

.............\....\........\Boot_ram.htm

.............\....\........\Boot_ram.lnp

.............\....\........\Boot_ram.plg

.............\....\........\Boot_ram.sct

.............\....\........\Boot_ram.tra

.............\....\........\Boot_ram_sct.Bak

.............\....\........\cortexm3_macro.o

.............\....\........\ExtDll.iex

.............\....\........\main.crf

.............\....\........\main.d

.............\....\........\main.o

.............\....\........\STM32F10x.o

.............\....\........\stm32f10x_it.crf

.............\....\........\stm32f10x_it.d

.............\....\........\stm32f10x_it.o

.............\....\........\syster_config.crf

.............\....\........\syster_config.d

.............\....\........\syster_config.o

.............\....\........\_5110.crf

.............\....\........\_5110.d

.............\....\........\_5110.o

.............\....\dcmot.Opt

.............\....\dcmot.plg

.............\....\dcmot.Uv2

.............\....\dcmot_Boot_flash.dep

.............\....\dcmot_Boot_ram.dep

.............\....\dcmot_Opt.Bak

.............\....\dcmot_Target 1.dep

.............\....\dcmot_Uv2.Bak

.............\....\JLinkArm_Boot_flash.ini

.............\....\JLinkArm_Boot_ram.ini

.............\....\listing\Boot_fash.map

.............\....\.......\Boot_flash.map

.............\....\.......\Boot_ram.map

.............\....\.......\cortexm3_macro.lst

.............\....\.......\STM32F10x.lst

.............\....\RAM.ini

.............\....\STM32F10x.s

.............\....\user\main.c

.............\....\....\stm32f10defgpio_out.h

.............\....\....\stm32f10x_it.c

.............\....\....\syster_config.c

.............\....\....\_5110.c

.............\....\....\_5110.h

.............\Library\inc\cortexm3_macro.h

.............\.......\...\stm32f10x_adc.h

.............\.......\...\stm32f10x_bkp.h

.............\.......\...\stm32f10x_can.h

.............\.......\...\stm32f10x_dma.h

.............\.......\...\stm32f10x_exti.h

.............\.......\...\stm32f10x_flash.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_spi.h

.............\.......\...\stm32f10x_systick.h

.............\.......\...\stm32f10x_tim.h

.............\.......\...\stm32f10x_tim1.h

.............\.......\...\stm32f10x_type.h

.............\.......\...\stm32f10x_usart.h

.............\.......\...\stm32f10x_wwdg.h

.............\.......\...\stm32gpio_out.h

.............\.......\src\STM32F10xR.LIB

.............\.......\...\s

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org