Line 199: |
Line 199: |
| | | | | |
| {| align="center" cellpadding="4" border="0" cellspacing="0" style="text-align:left" | | {| align="center" cellpadding="4" border="0" cellspacing="0" style="text-align:left" |
− | | 11 || 10 || 09 || 08 || 07 || 06 || 05 || 04 || 03 || 02 || 01 || 00 | + | | style="width:8.33%" |11 || style="width:8.33%" |10 || style="width:8.33%" |09 || style="width:8.33%" |08 || style="width:8.33%" |07 || style="width:8.33%" |06 || style="width:8.33%" |05 || style="width:8.33%" |04 || style="width:8.33%" |03 || style="width:8.33%" |02 || style="width:8.33%" |01 || style="width:8.33%" |00 |
| |- | | |- |
| | Write || Seq || DC || Addr<sub>2</sub> || Addr<sub>1</sub> || Addr<sub>0</sub> || Pow<sub>1</sub> || Pow<sub>0</sub> || Shadow || DC || Range || Coding | | | Write || Seq || DC || Addr<sub>2</sub> || Addr<sub>1</sub> || Addr<sub>0</sub> || Pow<sub>1</sub> || Pow<sub>0</sub> || Shadow || DC || Range || Coding |
| + | |} |
| + | |} |
| + | |
| + | The sections of the control register are: |
| + | * Write: |
| + | ** if 0, do not update the remaining 11 bits of the control register |
| + | ** if 1, write new data to the control register |
| + | * Seq: used for a feature we don't need: set to zero |
| + | * DC: don't care |
| + | * Addr(2:0): 3-bit address of channel to report on during next conversation |
| + | * Pow(1:0): used for changing power modes: set to "11" |
| + | * Shadow: used for a feature we don't need: set to zero |
| + | * DC: don't care |
| + | * Range: set to zero |
| + | ** if 0, analog input range is 0 to 2*V<sub>Ref</sub> |
| + | ** if 1, analog input range is 0 to V<sub>Reg</sub> |
| + | * Coding: set to zero |
| + | ** if 0, output is twos-complement |
| + | ** if 1, output is binary-coded decimal |
| + | |
| + | Thus a conversation to read the voltage only (and not update the control register would look like |
| + | |
| + | {| align="center" cellpadding="1" border="1" cellspacing="1" |
| + | | |
| + | {| align="center" cellpadding="4" border="0" cellspacing="0" style="text-align:left" |
| + | | style="width:8.33%" |11 || style="width:8.33%" |10 || style="width:8.33%" |09 || style="width:8.33%" |08 || style="width:8.33%" |07 || style="width:8.33%" |06 || style="width:8.33%" |05 || style="width:8.33%" |04 || style="width:8.33%" |03 || style="width:8.33%" |02 || style="width:8.33%" |01 || style="width:8.33%" |00 |
| + | |- |
| + | | 0 || x || x || x || x || x || x || x || x || x || x || x |
| |} | | |} |
| |} | | |} |