Example for SSD Module of MPC5645S

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Example for SSD Module of MPC5645S

2,226 次查看
alexeiegorov
Contributor I

Hello, friends! I am in big trouble! I can't resolve this by myself! I need example for SSD (stepper driver) module of MPC5645S?

标签 (1)
0 项奖励
回复
3 回复数

2,015 次查看
josejavierbarri
Contributor I

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 

0 项奖励
回复

2,015 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

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

2,015 次查看
alexeiegorov
Contributor I

Thanks! It's very helpful!

0 项奖励
回复