Hello, friends! I am in big trouble! I can't resolve this by myself! I need example for SSD (stepper driver) module of MPC5645S?
Hi,
We are working for new project based on MPC5645S. I use the sample code as reference (bug in ssd.c in SSD5_itg_isr "store integration result" line 647).
My doubts is where do you place this code with respect to smc module (SSD_Off; Install_Motors_Interrupts and SMC_init functions are not implemented) ?. Now I am calling the SSD_init function inside the PIT1_isr associated to SMC. It does neither detect stall correctly nor allows a properly movement of motor. Could you provide any chunk of code with a main with SSD and SMC?
Thanks in advance,
Javier
Hi,
please find attached a sample SSD driver. Remember that all Stepper motors are different and need to be calibrated. In order to find out more information please see the following documents:
- AN3330 Introduction to the stepper stall detector module
- AN4037 Driving a stepper motor using the MPC56xxS SMC module
http://www.freescale.com/files/microcontrollers/doc/app_note/AN3330.pdf
http://www.freescale.com/webapp/sps/download/license.jsp?colCode=AN3330SW
http://www.freescale.com/files/32bit/doc/app_note/AN4037.pdf
http://www.freescale.com/files/32bit/doc/app_note/AN4037SW.zip
Regards,
Lukas
Thanks! It's very helpful!