cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

ToVa_285016
Contributor

Hi,

   

I am trying to operate an L6472 stepper motor driver:

   

http://www.st.com/web/en/resource/technical/document/datasheet/DM00047136.pdf

   

I am having trouble connecting at all, and getting anything in return other than a 0x00 byte.

   

Any suggestions?  I am a beginner coder, so suggestions for code structure are not out of bounds.

   

Regards,
Tom

0 Likes
Reply
2 Replies
JoMe_264151
Expert II

The cause might be that the ss-line is not kept active throughout a multi-byte write. You wait for the byte transmitted which will release the ss line when done. As a test I would suggest to define your own pin as ss-line, remove the hardware connection and set it with SS_Pin_Write() to the desired level (active low) when a transaction starts or ends.

   

 

   

Bob

0 Likes
Reply
ToVa_285016
Contributor

Hi,

   

If I use the SendArray() function the SS remains low.  However, the only data I ever get back is identical to the data sent, just like an echo, with no parameter information that should be returning.  Any idea what this might indicate?  The miso and mosi pins are not crossed or shorted.

   

Thank you,
Tom

0 Likes
Reply