Current, Power & ADC

# Avia Semiconductor HX711 digital twin

24-bit bridge/load-cell ADC with 2-wire synchronous serial interface.

standing: provisional 2-Wire GPIO (PD\_SCK / DOUT) 25/26/27 clock pulses select Ch A (128x/64x) or Ch B (32x)

Vendor Avia Semiconductor Current, Power & ADC

Interface 2-Wire GPIO 25/26/27 clock pulses select Ch A (128x/64x) or Ch B (32x)

Record Status 2026-11-19 rev c3f5f9950 (clean tree)

## Driver oracle & capability record

Part of the 27-part, 44-case twin-factory oracle suite (44/44 passed, generator 0.1.0+policy.12).

| Driver reference  | Twin-factory vendor-driver oracle (0.1.0+policy.12)                                                                                                     |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 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  | [accuracy/twin-factory-oracles-2026-11-19b.json](https://circuittwin.ai/evidence/accuracy/twin-factory-oracles-2026-11-19b.json) (SHA-256 caa6e32e53c5) |

## Key registers & reset values

| Address / Field | Register     | Reset / Expected | Purpose                                            |
| --------------- | ------------ | ---------------- | -------------------------------------------------- |
| 24 pulses       | DOUT\_24BIT  | 24-bit 2s comp   | MSB-first bridge ADC sample shifted out on PD\_SCK |
| Pulses 25–27    | GAIN\_SELECT | Next sample gain | Sets next conversion channel and PGA gain          |

## Attach with ct CLI

Shell - run firmware with HX711

```
# Run compiled firmware with HX711 attached on rpi-pico
ct run --json --board rpi-pico --device hx711 build/app.elf

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

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

tests/hx711-fault.suite.yaml

```
version: 1
board: rpi-pico
firmware: build/app.elf
tests:
  - name: hx711-dout-stuck-high-timeout
    faults:
      - at_ms: 50
        part: hx711
        kind: pin_stuck
        pin: DOUT
        level: high
    expect:
      console_contains: "ADC_TIMEOUT_RECOVERED"
      exit_code: 0
```

## Compatible board twins

[Board: rpi-pico](https://circuittwin.ai/boards/rpi-pico) [Board: arduino-uno](https://circuittwin.ai/boards/arduino-uno) [Board: nucleo-f767zi](https://circuittwin.ai/boards/nucleo-f767zi) [Accuracy report](https://circuittwin.ai/docs/accuracy)

## More in Current, Power & ADC

[ADS1015 (Texas)](https://circuittwin.ai/twins/ads1015) [ADS1115 (Texas)](https://circuittwin.ai/twins/ads1115) [ADS1220 (Texas)](https://circuittwin.ai/twins/ads1220) [ADS1256 (Texas)](https://circuittwin.ai/twins/ads1256) [BQ27441-G1 (Texas)](https://circuittwin.ai/twins/bq27441-g1) [INA219 (Texas)](https://circuittwin.ai/twins/ina219)

> ## Inject HX711 bus faults in CI
>
> Wire HX711 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)
