MCP3421
Datasheet
Slave address
| Slave Address | 0x69 |
|---|
Register map
| Address | Name | Type | Default | 概要 |
|---|---|---|---|---|
| どこでも | CONFIGURATION | W | 00000000 | コンフィグレーション |
| どこでも | DATA | R | 00000000 | データ |
CONFIGURATION
| Configuration | 0x00 |
|---|
| Bit7 | Bit6 | Bit5 | Bit4 | Bit3 | Bit2 | Bit1 | Bit0 |
|---|---|---|---|---|---|---|---|
| RDY | C1 | C0 | O/C | S1 | S0 | G1 | G0 |
RDY
Ready Bit
- 1 Initiate a new conversion.
- 0 No effect.
C1-C0
ここは利用していない
O/C
Conversion Mode Bit
- 1 = Continuous Conversion Mode (Default).
- 0 = One-Shot Conversion Mode.
S1-S0
Sample Rate Selection Bit
| Bit3 S1 |
Bit2 S0 |
Sample Rate |
|---|---|---|
| 0 | 0 | 240SPS(12bits). |
| 0 | 1 | 60SPS(14bits). |
| 1 | 0 | 15SPS(16bits). |
| 1 | 1 | 3.75SPS(18bits). |
G1-G0
PGA Gain Selection Bits
| Bit1 G1 |
Bit0 G0 |
PGA Gain |
|---|---|---|
| 0 | 0 | x1(Default). |
| 0 | 1 | x2. |
| 1 | 0 | x4. |
| 1 | 1 | x8. |
Data
| Data | 0x00 |
|---|
データの始まり
| Bit7 | Bit6 | Bit5 | Bit4 | Bit3 | Bit2 | Bit1 | Bit0 |
|---|---|---|---|---|---|---|---|
| 1 | 0 | 1 | 1 | x | x | x | x |
2Byte目
| Bit7 | Bit6 | Bit5 | Bit4 | Bit3 | Bit2 | Bit1 | Bit0 |
|---|---|---|---|---|---|---|---|
| x | x | x | x | x | x | D17 | D16 |
3Byte目
| Bit7 | Bit6 | Bit5 | Bit4 | Bit3 | Bit2 | Bit1 | Bit0 |
|---|---|---|---|---|---|---|---|
| D15 | D14 | D13 | D12 | D11 | D10 | D9 | D8 |
4Byte目
| Bit7 | Bit6 | Bit5 | Bit4 | Bit3 | Bit2 | Bit1 | Bit0 |
|---|---|---|---|---|---|---|---|
| D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 |