STM32L151VE ADC reads 20% lower value on one of the ADC inputs (channel 18, pin B12)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-13 1:48 AM
Not sure if I messed something up. Signal is okay (on the pin). No differences with layout compared to other inputs. ADC is at full speed (16 MHz).
On image it is sensor 22 (reads ~2500). Sensor 23, 24, 25 all read normal values (~3000).
Voltages on all those pins is ~2.8V.
VREF, VDDA, VDD = 3.3V.
Solved! Go to Solution.
- Labels:
-
ADC
-
STM32L1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-13 1:27 PM
Yes that looks fine. Faulty IC maybe ? Do you have a second PCB loaded ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-13 1:31 PM
Checked under stereo microscope (well ones you use for soldering surface mount), didn't see anything suspicious.
Was curious why this stuff can happen, might read it multiple times, it seems 2nd read is better than 1st. Similar to how 1st channel in sequence reads high consistently (10% higher than it should be). This is solved by reading the same channel again immediately after 1st read.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-13 1:34 PM
Not sure if it is a small defect in a chip. Later will make 2nd version of this board will see if it changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-13 1:38 PM
Ok what you could do is set up the code to repeatedly measure just one ADC and measure the current through the VDDA pin. Repeat for the good and bad ADCs and see if there is a significant difference. Means lifting the pin but at least it's not a BGA. Can't think of anything else I'm afraid.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-13 1:41 PM
I was actually experimenting with using one voltage regulator (switch) to supply all parts (digital and analog) vs using separate linear regulator for analog parts and using voltage reference chip.
Going to make another board with L4 chip as it allows VDDA to be different supply from VDD.
Not sure if I need it though. With one switch DC-DC regulator noise seem to be only +/- 0.35 %. More than enough for my use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-13 1:43 PM
Thank you! Will do! didn't think about this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-13 1:44 PM
An LC will do on VDDA - shouldn't need a separate regulator
And if that was the problem, all ADCs would be wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-13 1:52 PM
Yep. Thank you!
I mean this whole board is test for using simple DC-DC switch regulator. All analog pins have very low noise (checked). Similar to histogram above.

- « Previous
-
- 1
- 2
- Next »