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.
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.
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
I have set folllowing registers for using DSPI_B as master and I am using stepper motor as slave.
DSPI_C.MCR.B.HALT = 0x0;
Anything else I have to set to seethe clock pulses on SIU.PCR?
Can you please suggest me.
Thanks in advance
It does not makes any sense to me. Connecting DSPI to motor as slave?
Have a look at basic examples on SPI master:
This example sent one 16-bit frame to output.
and here is another example for DPSI configuration:
Example MPC5676R DSPI MasterSlave DMA CW210
Retrieving data ...