Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[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
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
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
48,419
Helped
14,252
Reputation
28,765
Reaction score
12,942
Trophy points
1,393
Location
Bochum, Germany
Activity points
280,194
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.
 

srizbf

Advanced Member level 5
Joined
Apr 3, 2010
Messages
1,995
Helped
417
Reputation
840
Reaction score
328
Trophy points
1,363
Activity points
10,985
is it possible "DIR" control through SPI command?
(only status can be read)
 

gobiraj

Member level 2
Joined
Jul 23, 2013
Messages
46
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
374
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.



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.
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
48,419
Helped
14,252
Reputation
28,765
Reaction score
12,942
Trophy points
1,393
Location
Bochum, Germany
Activity points
280,194
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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top