| Electronic Components Datasheet Search |
|
UM1756 Datasheet(PDF) 46 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1756 Datasheet(HTML) 46 Page - STMicroelectronics |
|
46 / 49 page ![]() Programming section UM1756 46/49 DocID026263 Rev 2 Release SW example 49. Motor motion in reverse direction at minimum speed until the user removes the jumper on J8, the LED_SPARE (YELLOW) toggles until the user removes the jumper on J8 | ReleaseSW (ACT, DIR). 50. The LED_SPARE (YELLOW) is switched off. 51. Motor moves by 100,000 steps forward | Move (DIR, N_STEP). 52. Wait until not busy - busy pin test (pin 22). 53. Motor goes to the home position set by the ReleaseSW command | GoHome. 54. Wait until not busy - busy pin test (pin 22). Step clock mode example 55. Get Status to clear FLAG due to switch turn-on event (falling edge on the SW pin) | GetStatus. 56. Motor runs in step clock mode at 2000 steps/s in forward direction for a few seconds while a 2 kHz clock signal from the MCU is applied to the STCK pin (25) | StepClock (DIR). 57. The above cited clock is stopped. Buttons interrupt example 58. Buttons interrupt configuration a) Button_A – Starts the motor at quarter of max. speed if it is stopped | Run (DIR, SPD). – Doubles the motor speed if it is already running | Run (DIR, SPD). b) Button_B – Disables the power bridges after a smooth stop if the motor is running at minimum speed | SoftHiZ. – Halves the motor speed if the motor is running above minimum speed | Run (DIR, SPD). 5.4.4 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_CSPIN_6480H_DISCOVERY The flag ST_CSPIN_6480H_DISCOVERY is used for both L6480 and L6482 chips. It is used to distinguish boards (i.e. the DISC board from the PCC009V2 board). |
|
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 |