- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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