Commit 6202e13
committed
pbdrv: adc: ev3: Improve ADC settling time.
Using the max SPI SCLK speed of 20 MHz, the ADC is not able to read up
to the full 5V but rather reading somewhere around 50 mV less.
By slowing down the SCLK rate, we give the ADC more time to settle after
switching the mux and can get more accurate readings as a result.
Testing has shown that 1 MHz slow enough to achieve this.1 parent acaec85 commit 6202e13
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
0 commit comments