stm32steppermotor
所属分类:其他书籍
开发工具:C++ Builder
文件大小:252KB
下载次数:77
上传日期:2009-08-02 15:21:15
上 传 者:
pisayisi
说明: stm32 stepper motor code examples
文件列表:
FWLib (0, 2009-03-02)
FWLib\library (0, 2009-03-02)
FWLib\library\inc (0, 2009-03-02)
FWLib\library\inc\cortexm3_macro.h (2225, 2009-03-02)
FWLib\library\inc\stm32f10x_adc.h (18854, 2009-03-02)
FWLib\library\inc\stm32f10x_bkp.h (6911, 2009-03-02)
FWLib\library\inc\stm32f10x_can.h (12279, 2009-03-02)
FWLib\library\inc\stm32f10x_crc.h (1881, 2009-03-02)
FWLib\library\inc\stm32f10x_dac.h (9598, 2009-03-02)
FWLib\library\inc\stm32f10x_dbgmcu.h (2859, 2009-03-02)
FWLib\library\inc\stm32f10x_dma.h (17974, 2009-03-02)
FWLib\library\inc\stm32f10x_exti.h (5776, 2009-03-02)
FWLib\library\inc\stm32f10x_flash.h (13996, 2009-03-02)
FWLib\library\inc\stm32f10x_fsmc.h (18487, 2009-03-02)
FWLib\library\inc\stm32f10x_gpio.h (14820, 2009-03-02)
FWLib\library\inc\stm32f10x_i2c.h (15604, 2009-03-02)
FWLib\library\inc\stm32f10x_iwdg.h (3414, 2009-03-02)
FWLib\library\inc\stm32f10x_lib.h (3200, 2009-03-02)
FWLib\library\inc\stm32f10x_map.h (500262, 2009-03-02)
FWLib\library\inc\stm32f10x_nvic.h (19198, 2009-03-02)
FWLib\library\inc\stm32f10x_pwr.h (3865, 2009-03-02)
FWLib\library\inc\stm32f10x_rcc.h (14783, 2009-03-02)
FWLib\library\inc\stm32f10x_rtc.h (3619, 2009-03-02)
FWLib\library\inc\stm32f10x_sdio.h (18326, 2009-03-02)
FWLib\library\inc\stm32f10x_spi.h (13470, 2009-03-02)
FWLib\library\inc\stm32f10x_systick.h (3212, 2009-03-02)
FWLib\library\inc\stm32f10x_tim.h (47203, 2009-03-02)
FWLib\library\inc\stm32f10x_type.h (3388, 2009-03-02)
FWLib\library\inc\stm32f10x_usart.h (14180, 2009-03-02)
FWLib\library\inc\stm32f10x_wwdg.h (2620, 2009-03-02)
FWLib\library\src (0, 2009-03-02)
FWLib\library\src\stm32f10x_adc.c (58563, 2009-03-02)
FWLib\library\src\stm32f10x_bkp.c (11170, 2009-03-02)
FWLib\library\src\stm32f10x_can.c (31644, 2009-03-02)
FWLib\library\src\stm32f10x_crc.c (4615, 2009-03-02)
FWLib\library\src\stm32f10x_dac.c (17175, 2009-03-02)
FWLib\library\src\stm32f10x_dbgmcu.c (5222, 2009-03-02)
FWLib\library\src\stm32f10x_dma.c (33291, 2009-03-02)
FWLib\library\src\stm32f10x_exti.c (8742, 2009-03-02)
FWLib\library\src\stm32f10x_flash.c (32684, 2009-03-02)
... ...
/******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
* File Name : readme.txt
* Author : MCD Application Team
* Version : V1.0.0
* Date : 02/20/2009
* Description : readme file for STM32 Driving Bipolar Stepper Motors AN.
********************************************************************************
* THE PRESENT FIRMWARE 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 FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/
Firmware description
===================
This application note describes how to achieve a compact size, high speed, low coast with less resources when driving the bipolar stepper motors using the STM32 cortex-M3 based microcontrollers.
It presents a simple method to implement the full and half operating modes in order to control the stepper motors
Directory contents
==================
+ project : containing the project workspace and projects configuration for every used tools.
+ include : containing the user header files
- stm32f10x_conf.h Library Configuration files
- stm32f10x_it.h Interrupt handlers header files
- main.h main header file
-StepperMotor.h Motor control header file
+ source : containing the user source files
- stm32f10x_it.c Interrupt handlers
- main.c main program
- StepperMotor.c Motor control source routines
Hardware environment
====================
There is no specific hardware (single PCB board with one reference) used in this Application Note.
The validation was performed using a connection between an evaluation board for the L6208N DMOS driver ( ST board)
And STM3210B-EVAL ( the STM32F10x controls the L6208N DMOS driver).
For getting clear picture concerning the hardware connection, please refer to the Figure.8, in the current Application Note
documentation.
How to use it
=============
How to use it
=============
+ EWARM:
- Open the FullHalfStepMode.eww workspace
- In the workspace toolbar select the project config:
- STM3210B-EVAL: to configure the project for STM32 Medium-density devices
- STM3210E-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->Rebuild all
- Load project image: Project->Debug
- Run program: Debug->Go(F5)
+ RIDE
- Open the Stepper_Motor_FullHalfStep.rprj project
- In the configuration toolbar(Project->properties) select the project config:
- STM3210B-EVAL: to configure the project for STM32 Medium-density devices
- STM3210E-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->build project
- Load project image: Debug->start(ctrl+D)
- Run program: Debug->Run(ctrl+F9)
+ RVMDK
- Open the Stepper_Motor_FullHalfStep.Uv2 project
- In the build toolbar select the project config:
- STM3210B-EVAL: to configure the project for STM32 Medium-density devices
- STM3210E-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->Rebuild all target files
- Load project image: Debug->Start/Stop Debug Session
- Run program: Debug->Run (F5)
+ HiTOP
- Open the HiTOP toolchain, a "using projects in HiTOP" window appears.
- Select open an existing project.
- Browse to open the FullHalfStepMode.htp:
- under STM32F10B_EVAL directory: to select the project for STM32 Medium-density devices.
- under STM32F10E_EVAL directory: to select the project for STM32 High-density devices
- Rebuild all files: Project->Rebuild all
- Click on ok in the "download project" window.
- Run program: Debug->Go(F5).
Note:
- When using High-density devices, it is mandatory to reset the target
before loading the project into target.
- It is recommended to run the reset script (click on TR button in the
toolbar menu) after loading the project into target.
NOTE:
- Medium-density devices are STM32F101xx and STM32F103xx microcontrollers where
the Flash memory density ranges between 32 and 128 Kbytes.
- High-density devices are STM32F101xx and STM32F103xx microcontrollers where
the Flash memory density ranges between 256 and 512 Kbytes.
******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE******
近期下载者:
相关文件:
收藏者: