Stepper motor control through DSPI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Stepper motor control through DSPI

932 Views
monicabagade
Contributor II

 Hello,  I am working on some project in which we are using MPC5634M.

 

In this I want to control stepper motor Through DSPI. Do anyone have idea how to do it?

Kindly advise me on this. Thanks in advance.

Labels (1)
3 Replies

638 Views
monicabagade
Contributor II

Hi,

I am trying to transfer data through DSPI.  I have gone through the demo code given. But I am not able to get clock pulses even when I have set continious clock mode

CONT_SCKE =1.

I have set folllowing registers for using DSPI_B as master and I am using stepper motor as slave.

DSPI_B.MCR.R

DSPI_B.CTAR[0].R

DSPI_C.MCR.B.HALT = 0x0;

SIU.PCR[102]

SIU.PCR[103]

SIU.PCR[104]

SIU.PCR[106]

Anything else I have to set to seethe clock pulses on SIU.PCR[102]?

Can you please suggest me.

Thanks in advance

0 Kudos

638 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

It does not makes any sense to me. Connecting DSPI to motor as slave?

Have a look at basic examples on SPI master:

http://cache.nxp.com/assets/documents/data/en/application-notes/AN2865.pdf?fsrch=1&sr=1&pageNum=1 

This example sent one 16-bit frame to output.

and here is another example for DPSI configuration:

https://community.nxp.com/docs/DOC-334012 

Peter

638 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

As you didn't share much info I can recommend you to check NXP web.

On our web you can find a bunch of application notes / reference design :
Brushless DC (BLDC) Motor|NXP 

I expect every serious motor control application use SPI as communication for setting up power driver.

Or it use PWM control of power stage transistors.

But exactly the design with MPC5634M we do not have available.

Peter