SBAS817D November 2017 – June 2024 ADS8166 , ADS8167 , ADS8168
PRODUCTION DATA
In this mode the internal channel sequencer selectively scans channels from AIN0 through AIN7 in any order as defined by a user-programmable look-up table. Table 6-4 describes the configurability of this look-up table. Configure the device in custom channel sequencing mode by programming the SEQ_MODE[1:0] bits to 11b in the DEVICE_CFG register using a 3-byte register access. Table 6-4 shows that the channel scanning sequence is programmed by configuring the channel IDs in the register as space. A channel sample count is also programmed and associated with every channel ID. By default the channel sample count is 1, which means the sequence executes in the order of programmed channel IDs. If the channel sample count is greater than 1 then the corresponding channel is sampled and converted for a programmed number of times before switching to the next channel.
REGISTER ADDRESS | CHANNEL ID[2:0] | REGISTER ADDRESS | CHANNEL SAMPLE COUNT[7:0] |
---|---|---|---|
0x8C | Index 0 : 3-bit channel ID (default = 0) | 0x8D | Index 0 : 8-bit sample count (default = 0xFF) |
0x8E | Index 1 : 3-bit channel ID (default = 0) | 0x8F | Index 1 : 8-bit sample count (default = 0xFF) |
0x90 | Index 2 : 3-bit channel ID (default = 0) | 0x91 | Index 2 : 8-bit sample count (default = 0xFF) |
0x92 | Index 3 : 3-bit channel ID (default = 0) | 0x93 | Index 3 : 8-bit sample count (default = 0xFF) |
0x94 | Index 4 : 3-bit channel ID (default = 0) | 0x95 | Index 4 : 8-bit sample count (default = 0xFF) |
0x96 | Index 5 : 3-bit channel ID (default = 0) | 0x97 | Index 5 : 8-bit sample count (default = 0xFF) |
0x98 | Index 6 : 3-bit channel ID (default = 0) | 0x99 | Index 6 : 8-bit sample count (default = 0xFF) |
0x9A | Index 7 : 3-bit channel ID (default = 0) | 0x9B | Index 7 : 8-bit sample count (default = 0xFF) |
0x9C | Index 8 : 3-bit channel ID (default = 0) | 0x9D | Index 8 : 8-bit sample count (default = 0xFF) |
0x9E | Index 9 : 3-bit channel ID (default = 0) | 0x9F | Index 9 : 8-bit sample count (default = 0xFF) |
0xA0 | Index 10 : 3-bit channel ID (default = 0) | 0xA1 | Index 10 : 8-bit sample count (default = 0xFF) |
0xA2 | Index 11 : 3-bit channel ID (default = 0) | 0xA3 | Index 11 : 8-bit sample count (default = 0xFF) |
0xA4 | Index 12 : 3-bit channel ID (default = 0) | 0xA5 | Index 12 : 8-bit sample count (default = 0xFF) |
0xA6 | Index 13 : 3-bit channel ID (default = 0) | 0xA7 | Index 13: 8-bit sample count (default = 0xFF) |
0xA8 | Index 14 : 3-bit channel ID (default = 0) | 0xA9 | Index 14 : 8-bit sample count (default = 0xFF) |
0xAA | Index 15: 3-bit channel ID (default = 0) | 0xAB | Index 15 : 8-bit sample count (default = 0xFF) |
For application-specific scanning requirements, use start and stop pointers to define the channel scanning sequence. Program the start index in the CCS_START_INDEX register and the stop index in the CCS_END_INDEX register. Table 6-4 shows that the 4-bit index corresponds to the configuration index. The sequence starts executing from the index programmed in CCS_START_INDEX (default 0) and stop or loop-back from CCS_STOP_INDEX (default 15). The channel scanning sequence is looped-back to the start index from the stop index by setting the CCS_SEQ_LOOP register to 1b.
After configuring the channel scanning order, start index, and stop index, initiate the scanning by setting the SEQ_START bit to 1b. The ADC scans through the enabled channels after every CS rising edge as defined by the channel scanning order. When SEQ_START is set to 1b, the SDO-1/SEQSTS pin is pulled high until the last channel conversion frame is complete, as described in Figure 6-14. As illustrated in Figure 6-15, channel AIN0 is selected and SEQSTS/SDO-1 goes to Hi-Z after the last enabled channel conversion is complete.
As an example, Figure 6-15 provides a timing diagram for when the channel configuration is set as in Table 6-5. When AIN6 is converted, SEQSTS/SDO-1 goes to Hi-Z and AIN0 is selected as the active channel. If more conversion frames are launched at the end of the sequence, the device returns valid data corresponding to AIN0.
To use the device in easy capture mode follow these steps:
REGISTER ADDRESS | CHANNEL ID[2:0] | REGISTER ADDRESS | CHANNEL SAMPLE COUNT[7:0] |
---|---|---|---|
0x8C | 010b (channel 2) | 0x8D | 1 |
0x8E | 110b (channel 6) | 0x8F | 1 |