You are here

L3 SMC sample project | Cypress Semiconductor

L3 SMC sample project

Last Updated: 
Jun 21, 2016
Version: 
1

The project includes all basic MCU startup code and the FCR4 Low Level
Library (L3), containing several peripheral modules.

Basic SMC example using PWM to driver stepper motors, micro stepping will be triggered by using RLTn set with Smc_SetRlt() driving stepper motors to target position to be set using function Smc_UpdatePosition()

Button SW1 toggles Start/Stop state of stepper motors enabling/disabling stepping
Button SW2 sets current position as zero position
Button SW3 moves stepper motors target position up
Button SW4 moves stepper motors target position down

For Buttons SW3/SW4 motors will only move to target position when SMC module is started so that micro stepping is enabled

This content contains information on Cypress products that have been migrated from Spansion's website in conjunction with our merger. Although marked with the name of the company that developed the material (Spansion or Fujitsu), Cypress continues to offer the content to our customers. There is no change to this information as a result of this migration. Future revisions will occur when appropriate, and changes will be noted in the revision history.