Motor Drivers & PMIC

# Analog Devices / Trinamic TMC5160 in the datasheet corpus

High-power SPI stepper controller with SixPoint motion ramp generator and external MOSFET gates.

standing: provisional SPI + STEP/DIR SPI Mode 3 (40-bit datagrams, up to 4 MHz)

Vendor Analog Devices / Trinamic Motor Drivers & PMIC

Interface SPI + STEP/DIR SPI Mode 3 (40-bit datagrams, up to 4 MHz)

Record Status Catalog profile Datasheet / behavioral twin

## Driver oracle & capability record

Indexed in the CircuitTwin datasheet corpus (motor-driver class) with 40-bit pipelined SPI status echo.

| Driver reference  | Zephyr adi,tmc51xx / Trinamic TMC-API                                                                                                           |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Evidence standing | provisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples). |
| Published record  | Generate or inspect locally via ct twin generate (see [/docs/twin-generation](https://circuittwin.ai/docs/twin-generation)).                    |

## Key registers & reset values

| Address / Field | Register           | Reset / Expected  | Purpose                                                  |
| --------------- | ------------------ | ----------------- | -------------------------------------------------------- |
| 0x00 / 0x01     | GCONF / GSTAT      | 0x00 / reset flag | Global configuration and reset/driver-error status       |
| 0x20 / 0x21     | RAMPMODE / XACTUAL | 0x00 / 32-bit pos | Position/velocity ramp mode and current step position    |
| 0x2D            | XTARGET            | 32-bit target     | Target step coordinate for internal ramp generator       |
| 0x6F            | DRV\_STATUS        | 32-bit flags      | StallGuard2, standstill, open-load and short-to-GND bits |

## Attach with ct CLI

Shell - run firmware with TMC5160

```
# Run compiled firmware with TMC5160 attached on nucleo-h743zi2
ct run --json --board nucleo-h743zi2 --device tmc5160 build/app.elf

# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/tmc5160.xml tests/tmc5160-fault.suite.yaml
```

## Fault-injection test snippet (suite.yaml)

tests/tmc5160-fault.suite.yaml

```
version: 1
board: nucleo-h743zi2
firmware: build/app.elf
tests:
  - name: tmc5160-spi-disconnect-and-fault
    faults:
      - at_ms: 40
        part: tmc5160
        kind: bus_disconnect
        duration_ms: 25
    expect:
      console_contains: "SPI_FAULT_HANDLED"
      exit_code: 0
```

## Compatible board twins

[Board: nucleo-h743zi2](https://circuittwin.ai/boards/nucleo-h743zi2) [Board: nucleo-f446re](https://circuittwin.ai/boards/nucleo-f446re) [Board: teensy-4-1](https://circuittwin.ai/boards/teensy-4-1) [Accuracy report](https://circuittwin.ai/docs/accuracy)

## More in Motor Drivers & PMIC

[DRV8305 (Texas)](https://circuittwin.ai/twins/drv8305) [TLF35584 (Infineon)](https://circuittwin.ai/twins/tlf35584) [TMC2209 (Analog)](https://circuittwin.ai/twins/tmc2209)

> ## Inject TMC5160 bus faults in CI
>
> Wire TMC5160 onto your MCU board twin, drive physical stimuli and fail builds when your driver hangs on NACKs or frozen registers.
>
> [Start now](https://app.circuittwin.ai/try) [Inputs & fault injection docs](https://circuittwin.ai/docs/inputs) [Connect a coding agent](https://circuittwin.ai/docs/agents)
