[Moved]firmware for Stepper Control driver IC

Status
Not open for further replies.

gobiraj

Member level 2
Joined
Jul 23, 2013
Messages
46
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Visit site
Activity points
374
Hi

I have STM32F1 series MCU to integrate with L6474 stepper IC driver.

But I found it from the manual that L6474 have API command to integrate with MCU using SPI.

But from the manual of L6474, I have found them using both GPIO and SPI together.

So my question is if I use SPI to communicate with MCU ,why should I concern about GPIO interface.

Regards
Gobi
 

L6474 is designed to perform individual steps triggered by a digital input. All operation parameters are set through SPI.

If you need only slow stepper motor operation, you can perform steps by writing to the electrical position register without using GPIO pins.
 
is it possible "DIR" control through SPI command?
(only status can be read)
 




I have very little knowledge on it. So can you please kindly explain me with details.

For example: they have API command (using SPI) to move motor by passing two parameters which are direction and distance(steps)
So why they still want to connect with the GPIO pins of MCU for direction.
 

I have very little knowledge on it. So can you please kindly explain me with details.
I see little chances for project success if you don't become familiar with the hardware and software provided for the L6474.

As previously mentioned, you can move the stepper by writing to the EL_POS register. But each step involves a SPI register write action. The API commands perform complex movements with speed ramps, as required by a step motor drive. They obviously use the digital step and direction inputs and respective STM32 timer code together with the SPI interface to issue individual steps during the ramp.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…