Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOIN Register value is being read incorrectly #33

Open
mustafab0 opened this issue Jun 11, 2023 · 0 comments
Open

IOIN Register value is being read incorrectly #33

mustafab0 opened this issue Jun 11, 2023 · 0 comments

Comments

@mustafab0
Copy link

Hello,

I am trying to control the TMC driver using UART interface. I am able set IHOLD_IRUN and also read it. But when I try to read the IOIN register it gives me bogus values.

The following are the status of my Driver Pin: En: 1, MS1 & MS2 : 1, PDN: 1, DIR: 1.

The Binary output when reading the IOIN register is: 1010000000000000110 (0x5006 in HEX)
And using bool function to access individual pin status gives following:
ENN: 0
MS1: 1
MS2: 0
DIAG: 0
PDN_UART: 0
STEP: 0
SEL_A: 0
DIR: 0
VERSION: 0

Output doesn't change even if I manually put DIR High or Low

@mustafab0 mustafab0 changed the title IOIN Register value is not being read properly IOIN Register value is being read incorrectly Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant