TMC2208Stepper icon indicating copy to clipboard operation
TMC2208Stepper copied to clipboard

IOIN Register value is being read incorrectly

Open mustafab0 opened this issue 1 year ago • 0 comments

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 avatar Jun 11 '23 11:06 mustafab0