Position-Adjust

所属分类:单片机开发
开发工具:C/C++
文件大小:308KB
下载次数:14
上传日期:2012-07-18 22:08:27
上 传 者jdafafdadg
说明:  永磁同步电机的零位确定,u v和u w和v w分别接正负,然后计算得到的平均值即为电机零位
(Mesure the PMSM zero position)

文件列表:
Position Adjust\main.c (10585, 2012-04-28)
Position Adjust\project\Backup of can.ewd (45560, 2012-03-21)
Position Adjust\project\Backup of can.ewp (63857, 2012-03-21)
Position Adjust\project\can.dep (26641, 2012-04-28)
Position Adjust\project\can.ewd (45548, 2012-04-28)
Position Adjust\project\can.ewp (49834, 2012-04-28)
Position Adjust\project\can.eww (157, 2012-03-21)
Position Adjust\project\cortexm3_macro.s (9811, 2010-04-14)
Position Adjust\project\Debug\Exe\can.out (106712, 2012-04-28)
Position Adjust\project\Debug\Obj\can.pbd (1081, 2012-04-28)
Position Adjust\project\Debug\Obj\cortexm3_macro.o (2204, 2012-04-09)
Position Adjust\project\Debug\Obj\main.o (21808, 2012-04-28)
Position Adjust\project\Debug\Obj\main.pbi (692, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_can.o (38896, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_can.pbi (748, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_flash.o (7216, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_flash.pbi (752, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_gpio.o (32272, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_gpio.pbi (750, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_i2c.o (57476, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_it.o (70324, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_it.pbi (708, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_lib.o (2404, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_lib.pbi (748, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_nvic.o (52840, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_nvic.pbi (750, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_rcc.o (57448, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_rcc.pbi (748, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_spi.o (35788, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_spi.pbi (748, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_systick.o (12708, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_systick.pbi (756, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_tim.pbi (748, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_tim1.o (147056, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_tim1.pbi (750, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_Timebase.o (9288, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_Timebase.pbi (720, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_usart.o (45120, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_usart.pbi (752, 2012-04-28)
Position Adjust\project\Debug\Obj\stm32f10x_vector.o (5876, 2012-04-28)
... ...

/******************** (C) COPYRIGHT 2007 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application Team * Version : V1.0 * Date : 10/08/2007 * Description : Description of the CAN Example. ******************************************************************************** * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. *******************************************************************************/ 本例展示了如何使用STM32的BxCAN模块来收发数据。在本例中,BxCAN模块工作在loopback模式下,即从接收端接收从发射段发出的数据,实现自发自收。运行程序以后,首先,模块将以50Kbit/s的波特率传输一帧标准数据。等待传输完成以后,在接受段接收并核对这帧数据,根据结果判断传输正确与否并亮起相应的LED。 随后,模块将以250Kbit/s的波特率传输一帧扩展数据,这次,接受端在收到收据以后,将产生一个中断,在中断中核对这帧数据。也根据结果判断传输正确与否并亮起相应的LED。 对于STM3210B-LK1,由于4个LED分别被连接在管脚PC.04 C PC.07,而在STM32-EVALB上,4个LED连接在PC.06 C PC.09。对上述程序只需要作相应的改动即可。 运行程序,发现版上LD4和LD3亮起,这标志着2次传输都成功。 注:此处英文版说明有误,2次传输波特率分别应为50Kbit/s和250Kbit/s。 Example description =================== This example provides a description of how to set a communication with the bxCAN in loopback mode. The CAN cell first performs a transmission and a reception of a standard data frame by polling at 100 Kbits/s. The received frame is checked and some LEDs light up to indicate whether the communication was successful. Then, an extended data frame is transmitted at 500 Kbits/s. Reception is done in the interrupt handler when the message becomes pending in the FIFO. Finally, the LEDs indicate if both transmission and reception have been successful. Directory contents ================== stm32f10x_conf.h Library Configuration file stm32f10x_it.c Interrupt handlers stm32f10x_it.h Interrupt handlers header file main.c Main program Hardware environment ==================== - This examples runs on STM3210B-EVAL board How to use it ============= In order to make the program work, you must do the following : - Create a project and setup all your toolchain's start-up files - Compile the directory content files and required Library files : + stm32f10x_lib.c + stm32f10x_can.c + stm32f10x_rcc.c + stm32f10x_gpio.c + stm32f10x_nvic.c + stm32f10x_flash.c - Link all compiled files and load your image into either RAM or FLASH - Run the example ******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE******

近期下载者

相关文件


收藏者