步进电机控制

所属分类单片机开发
开发工具:C/C++
文件大小:3103KB
下载次数:1
上传日期:2019-05-04 13:32:36
上 传 者15952749290
说明:  按键控制步进电机正反转和单次转动设定角度
(Keyboard Control Stepper Motor Forward and Reverse Rotation and Single Rotation Setting Angle)

文件列表:
步进电机控制 (0, 2019-03-04)
步进电机控制\stepcontrl (0, 2019-03-04)
步进电机控制\stepcontrl\CMSIS (0, 2019-03-04)
步进电机控制\stepcontrl\CMSIS\core_cm3.c (16249, 2009-04-06)
步进电机控制\stepcontrl\CMSIS\core_cm3.h (42111, 2011-08-14)
步进电机控制\stepcontrl\CMSIS\startup (0, 2019-03-04)
步进电机控制\stepcontrl\CMSIS\startup\startup_stm32f10x_hd.s (15872, 2009-04-06)
步进电机控制\stepcontrl\CMSIS\startup\startup_stm32f10x_ld.s (12236, 2009-04-06)
步进电机控制\stepcontrl\CMSIS\startup\startup_stm32f10x_md.s (12564, 2009-04-06)
步进电机控制\stepcontrl\CMSIS\stm32f10x.h (530869, 2011-05-31)
步进电机控制\stepcontrl\CMSIS\system_stm32f10x.c (24166, 2009-04-06)
步进电机控制\stepcontrl\CMSIS\system_stm32f10x.h (2158, 2009-04-06)
步进电机控制\stepcontrl\DMA_Polling (0, 2019-03-04)
步进电机控制\stepcontrl\DMA_Polling\main.c (10388, 2009-04-06)
步进电机控制\stepcontrl\DMA_Polling\platform_config.h (2399, 2009-04-06)
步进电机控制\stepcontrl\DMA_Polling\stm32f10x_conf.h (3204, 2009-04-06)
步进电机控制\stepcontrl\DMA_Polling\stm32f10x_it.c (4380, 2009-04-06)
步进电机控制\stepcontrl\DMA_Polling\stm32f10x_it.h (1893, 2009-04-06)
步进电机控制\stepcontrl\FWlib (0, 2019-03-04)
步进电机控制\stepcontrl\FWlib\inc (0, 2019-03-04)
步进电机控制\stepcontrl\FWlib\inc\misc.h (4951, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_adc.h (19558, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_bkp.h (7373, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_can.h (14289, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_crc.h (1980, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_dac.h (10271, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_dbgmcu.h (2980, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_dma.h (18790, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_exti.h (5833, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_flash.h (14446, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_fsmc.h (17276, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_gpio.h (15050, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_i2c.h (16923, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_iwdg.h (3677, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_pwr.h (4201, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_rcc.h (16258, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_rtc.h (3659, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_sdio.h (18598, 2009-04-06)
步进电机控制\stepcontrl\FWlib\inc\stm32f10x_spi.h (14896, 2009-04-06)
... ...

/** @page USART_DMA_Polling USART_DMA_Polling @verbatim ******************** (C) COPYRIGHT 2009 STMicroelectronics ******************* * @file USART/DMA_Polling/readme.txt * @author MCD Application Team * @version V3.0.0 * @date 04/06/2009 * @brief Description of the USART DMA Polling Example. ****************************************************************************** * 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. ****************************************************************************** @endverbatim @par Example Description This example provides a basic communication between USART1 and USART2 using DMA capability. First, the DMA transfers data from TxBuffer2 buffer to USART2 Transmit data register, then this data is sent to USART1. Data received by USART1 is transferred by DMA and stored in RxBuffer1 then compared with the send ones and the result of this comparison is stored in the "TransferStatus1" variable. In the same time, the DMA transfers data from TxBuffer1 buffer to USART1 Transmit data register, then this data is sent to USART2. Data received by USART2 is transferred by DMA and stored in RxBuffer2 then compared with the send ones and the result of this comparison is stored in the "TransferStatus2" variable. USART1 and USART2 configured as follow: - BaudRate = 230400 baud - Word Length = 8 Bits - One Stop Bit - No parity - Hardware flow control disabled (RTS and CTS signals) - Receive and transmit enabled @par Directory contents - USART/DMA_Polling/platform_config.h Evaluation board specific configuration file - USART/DMA_Polling/stm32f10x_conf.h Library Configuration file - USART/DMA_Polling/stm32f10x_it.h Interrupt handlers header file - USART/DMA_Polling/stm32f10x_it.c Interrupt handlers - USART/DMA_Polling/main.c Main program @par Hardware and Software environment - This example runs on STM32F10x High-Density, STM32F10x Medium-Density and STM32F10x Low-Density Devices. - This example has been tested with STMicroelectronics STM3210E-EVAL (STM32F10x High-Density) and STM3210B-EVAL (STM32F10x Medium-Density) evaluation boards and can be easily tailored to any other supported device and development board. To select the STMicroelectronics evaluation board used to run the example, uncomment the corresponding line in platform_config.h file. - STM3210E-EVAL Set-up - Connect a null-modem female/female RS232 cable between CN12 and CN8. - STM3210B-EVAL Set-up - Connect a null-modem female/female RS232 cable between CN5 and CN6. In this case USART2 Tx and Rx pins are remapped by software on PD.05 and PD.06 respectively. @par How to use it ? In order to make the program work, you must do the following : - Create a project and setup all project configuration - Add the required Library files : - stm32f10x_dma.c - stm32f10x_gpio.c - stm32f10x_rcc.c - stm32f10x_usart.c - system_stm32f10x.c - Edit stm32f10x.h file to select the device you are working on. @b Tip: You can tailor the provided project template to run this example, for more details please refer to "stm32f10x_stdperiph_lib_um.chm" user manual; select "Peripheral Examples" then follow the instructions provided in "How to proceed" sect ... ...

近期下载者

相关文件

评论我要评论

收藏者