Commit c14e438
Fix 18CH auto-SMUX: single start, burst read all registers
readAllChannels() was calling startMeasurement() per cycle, resetting
the auto-SMUX counter. Per datasheet, SP_EN is set once and the chip
auto-runs all cycles, signaling AVALID when all 18 registers are ready.
Also: default gain 64x, fulltest uses readAllChannels() directly.
Co-authored-by: ladyada <limor@ladyada.net>1 parent a15c969 commit c14e438
2 files changed
Lines changed: 28 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
| |||
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
319 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
320 | 335 | | |
321 | 336 | | |
322 | 337 | | |
323 | 338 | | |
324 | 339 | | |
| 340 | + | |
325 | 341 | | |
326 | 342 | | |
327 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
328 | 348 | | |
329 | 349 | | |
330 | 350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
185 | 178 | | |
186 | 179 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | 180 | | |
199 | 181 | | |
200 | 182 | | |
| |||
220 | 202 | | |
221 | 203 | | |
222 | 204 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
| 205 | + | |
227 | 206 | | |
228 | 207 | | |
229 | 208 | | |
0 commit comments