| Electronic Components Datasheet Search |
|
UM1771 Datasheet(PDF) 34 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1771 Datasheet(HTML) 34 Page - STMicroelectronics |
|
34 / 38 page ![]() Programming section UM1771 34/38 DocID026392 Rev 2 At the end of the demonstration sequence, the GPIO connected to LEFT and RIGHT buttons are configured to trigger interrupts on the microcontroller: On a LEFT button press, the microcontroller starts the motor which will accelerate up to max. speed. On a RIGHT button press, the microcontroller performs a soft stop of the motor. Even if the “Daisy Chain” mode is supported in the L6474 FW library, the L6474 Discovery board HW does not allow it. Please contact ST support if you want more information on the “Daisy Chain” mode testing or implementation. The FW L6474 library consists of the following files: user_motion/easyspin/inc/stm32f10x_conf.h Library configuration file user_motion/ easyspin /src/stm32f10x_it.c Interrupt handlers user_motion/easyspin/inc/stm32f10x_it.h Header for stm32f10x_it.c user_motion/easyspin/inc/clock.h System clock setup related header user_motion/ easyspin/src/clock.c System clock source file user_motion/easyspin/inc/easyspin.h L6474 definitions header user_motion/easyspin/inc/eMotionControl.h L6474 definitions header (for motion control routines) user_motion/easyspin/src/easyspin.c L6474 routines source file user_motion/easyspin/src/ eMotionControl.c L6474 routines source file (related to motion control) user_motion/easyspin/inc/easyspin _target_config.h L6474 configuration parameters (this file can be generated by the GUI) user_motion/easyspin/inc/main.h Main header file user_motion/easyspin/src/main.c Main program user_motion/easyspin/inc/pre_include.h First header file included by the preprocessor user_motion/easyspin/readme.txt Information on the files 5.4.3 Create a project using the FW library package Using your preferred IDE, create a new project. In project options, properties or settings: Select for the device, the ST STM32F105xB. Use the CMSIS library. Edit the preprocessor defined symbols and add: STM32F10X_CL USE_STDPERIPH_DRIVER ST_EASYSPIN_6474H_DISC Edit the preprocessor include directories and add: $PROJ_DIR$\ …\…\…\…\…\…\stm32f10x\CMSIS\CM3\DeviceSupport\ST\STM32F10x $PROJ_DIR$\…\…\…\…\…\…\stm32f10x\STM32F10x_StdPeriph_Driver\inc $PROJ_DIR$\…\…\…\…\…\easyspin\inc |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |