I am using Animatics Smart Motor SM3430D-PLS2. And Interfacing it with ezDSP TMS320F2808. The problem is that when request for velocity feedback is given to the motor, the motor sends variable array data to the DSP through RS232, and the size of the array depends upon the speed/velocity of the motor. If velocity is zero it sends two bytes, if velocity is between 1 and 10 it sends 5 bytes and so on. and remember that it sends 13(0x0D) in the last as a terminator byte. The problem is on DSP side, in which number of receive bytes should be fixed. so when variable number of bytes comes on its serial port, it gives time out error. So, anyone of you, please help me regarding this problem. As I am displaying this speed on LCD.
The administrator has disabled public write access.
Re: Interfacing SM3430D with DSP
9 years 2 months ago #130