Current, Power & ADC

# Microchip MCP3008 in the datasheet corpus

8-channel 10-bit SAR ADC over SPI (200 kSPS) supporting single-ended and pseudo-differential inputs.

standing: provisional SPI SPI Mode 0 or 3 (up to 3.6 MHz at 5 V)

Vendor Microchip Current, Power & ADC

Interface SPI SPI Mode 0 or 3 (up to 3.6 MHz at 5 V)

Record Status Catalog profile Datasheet / behavioral twin

## Driver oracle & capability record

Indexed in the CircuitTwin datasheet corpus (adc-dac class); 3-byte full-duplex command/sample frame.

| Driver reference  | Zephyr microchip,mcp3208 / Adafruit MCP3008                                                                                                     |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| 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                                               |
| --------------- | --------------------- | ---------------- | ----------------------------------------------------- |
| TX\[0\]         | START\_BIT            | 0x01             | Leading start bit aligns 10-bit result into RX\[1:2\] |
| TX\[1\]         | SGL\_DIFF + CH\[2:0\] | (0x80 \| ch<<4)   | Selects single-ended/differential and channel 0..7    |
| RX\[1:2\]       | ADC\_10BIT            | ((rx1&3)<<8)\|rx2 | 10-bit unsigned conversion word                       |

## Attach with ct CLI

Shell - run firmware with MCP3008

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

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

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

tests/mcp3008-fault.suite.yaml

```
version: 1
board: rpi-pico
firmware: build/app.elf
tests:
  - name: mcp3008-spi-disconnect-and-fault
    faults:
      - at_ms: 40
        part: mcp3008
        kind: bus_disconnect
        duration_ms: 25
    expect:
      console_contains: "SPI_FAULT_HANDLED"
      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-f411re](https://circuittwin.ai/boards/nucleo-f411re) [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) [HX711 (Avia)](https://circuittwin.ai/twins/hx711)

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