Steppermotor using TMC260_pa

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

I am attaching my code for running stepper motor ,could you please tell me is there any mistake in it.With this program my motor is not working.

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

int SPItransfer(uint_8 Data)

{

SPI_WriteTxData(Data);

SPI_ReadRxData();

return Data;

}

This will not work, you need to wait until the data transfer has completed before reading the result.

Bob

View solution in original post

1 Reply