| Electronic Components Datasheet Search |
|
UM1756 Datasheet(PDF) 43 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1756 Datasheet(HTML) 43 Page - STMicroelectronics |
|
43 / 49 page ![]() DocID026263 Rev 2 43/49 UM1756 Programming section 49 The L648x FW library has been tested on the L6480H Discovery board R1 and the L6482H Discovery R1. The main program contains a commented demonstration sequence which uses all the library supported features. This sequence is interactive and to proceed to the end some user action is necessary. For the “GoUntil” feature demonstration, when the LED SPARE is blinking for the first time, the user shall close the SW MOTOR jumper J8. This triggers a switch turn-on event at the L648x SW pin. For the “ReleaseSW” feature demonstration, when the LED SPARE is blinking again, the user shall open the SW MOTOR jumper J8. This triggers a L648x SW pin release. At the end of the demonstration sequence, the GPIO connected to the LEFT and RIGHT buttons are configured to trigger interrupts on the microcontroller: On a LEFT button press, the microcontroller starts the motor at quarter of max. speed if it is stopped, or doubles the motor speed if it is already running. On a LEFT button press, the microcontroller disables the power bridges after a smooth stop if the motor is running at minimum speed, or halves the motor speed if the motor is running above minimum speed. Even if the “Daisy Chain” mode is supported in the L648x FW library, the board HW does not allow it. Please contact ST support if you want more information on “Daisy Chain” mode testing or implementation. The L648x FW library consists of the following files: user_motion/cspin/inc/stm32f10x_conf.h Library configuration file user_motion/cspin/src/stm32f10x_it.c Interrupt handlers user_motion/cspin/inc/stm32f10x_it.h Header for stm32f10x_it.c user_motion/cspin/inc/clock.h System clock setup related header user_motion/cspin/src/clock.c System clock source file user_motion/cspin/inc/cspin.h Definitions header user_motion/cspin/src/cspin.c Routines source file user_motion/cspin/inc/cspin_config.h Configuration parameters (this file can be generated by the GUI) user_motion/cspin/inc/main.h Main header file user_motion/cspin/src/main.c Main program user_motion/cspin/inc/pre_include.h First header file included by the preprocessor user_motion/cspin/readme.txt Information on the files 5.4.3 Demo sequence description The demonstration sequence description is for one L6480 or L6482 device without daisy chaining. The application commands used are noted after the pipe character. The application commands traffic can be seen on the SPI interface, pins 18, 19, 20 and 23 which are respectively SDO, CK, SDI and CS. |
|
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 |