Author Topic: PWM-ing the LSB of a DAC  (Read 1204 times)

0 Members and 1 Guest are viewing this topic.

Offline CirclotronTopic starter

  • Super Contributor
  • ***
  • Posts: 3168
  • Country: au
PWM-ing the LSB of a DAC
« on: December 03, 2021, 08:42:35 am »
Say we have an 8-bit DAC that we want to squeeze a bit more resolution out of. We could PWM the LSB at one of 16 different pulse widths, and provided we do it rapidly enough and then low pass filter it we have greater analog resolution. What would it be though? 12 bits or only 11?
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 2117
  • Country: gb
  • Test instrument designer/G1YWC
    • Electron Plus
Re: PWM-ing the LSB of a DAC
« Reply #1 on: December 03, 2021, 09:18:52 am »
Can't see why it wouldn't work. Probably DAC dependent to some extent.

As for theoretical resolution, look at it as a 7bit DAC plus a 4bit DAC = 11 bits.

Upsides:
Settling time for large transistions reduced considerably due to hybrid nature.
Much faster than a pure PWM DAC.
Uses an 8bit DAC which *might* be cheaper/more available than a 12bit DAC.

Downsides:
Slows down throughput by at least 16x (11bit) to 32x (12bit)
Device dependent - might be some anomalies in the rise/fall times of the DAC leading to non-linearaties.
Filtering will be more complex, probably get best performance with a 3rd+ order filter - (opamps may be cheap and you might already be filtering elsewhere so perhaps not a downside).
https://electron.plus Power Analysers, VI Signature Testers, Voltage References, Picoammeters, Curve Tracers.
 

Offline artag

  • Super Contributor
  • ***
  • Posts: 1061
  • Country: gb
Re: PWM-ing the LSB of a DAC
« Reply #2 on: December 03, 2021, 10:00:47 am »
You can do it. It's called dithering.
 
The following users thanked this post: tooki

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7314
  • Country: nl
  • Current job: ATEX product design
Re: PWM-ing the LSB of a DAC
« Reply #3 on: December 03, 2021, 10:08:09 am »
Depending on the DNL and INL of the DAC, you might get better accuracy and resolution, or worse accuracy and better resolution.
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: nz
Re: PWM-ing the LSB of a DAC
« Reply #4 on: December 03, 2021, 10:19:55 am »
It gets even more complex when you have 3 DACs and you use two to dynamically set the Vref min and max of the 3rd.  ;)
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline CirclotronTopic starter

  • Super Contributor
  • ***
  • Posts: 3168
  • Country: au
Re: PWM-ing the LSB of a DAC
« Reply #5 on: December 03, 2021, 11:35:53 am »
As for theoretical resolution, look at it as a 7bit DAC plus a 4bit DAC = 11 bits.
:-+
 

Online langwadt

  • Super Contributor
  • ***
  • Posts: 4394
  • Country: dk
Re: PWM-ing the LSB of a DAC
« Reply #6 on: December 03, 2021, 11:53:35 am »
Say we have an 8-bit DAC that we want to squeeze a bit more resolution out of. We could PWM the LSB at one of 16 different pulse widths, and provided we do it rapidly enough and then low pass filter it we have greater analog resolution. What would it be though? 12 bits or only 11?

you can also use deltasigma modulation, taken to the extreme with a single bit DAC
 

Offline Berni

  • Super Contributor
  • ***
  • Posts: 4923
  • Country: si
Re: PWM-ing the LSB of a DAC
« Reply #7 on: December 03, 2021, 12:11:33 pm »
Yep this is how delta sigma works.

Most audio DACs you listen to only have around 1 to 6 bits of resolution, but they run them at >10MSPS and use modulation to get those 24bits out of them at audio frequencies. The faster your DAC is the more leftover samplerate you have to turn into extra bits. Tho there are practical limits to all of this, the DACs used for audio are particularly designed for being well suited for delta sigma.
 
The following users thanked this post: tooki

Online peter-h

  • Super Contributor
  • ***
  • Posts: 3671
  • Country: gb
  • Doing electronics since the 1960s...
Re: PWM-ing the LSB of a DAC
« Reply #8 on: December 03, 2021, 05:35:53 pm »
Yes this is done with ADCs too - you inject noise into the input voltage and then take say 100 readings, add them up, and divide by 100, for a 10x resolution improvement.

The problem is that you just get more resolution, not usually more accuracy, and the ADCs and DACs which are on-chip in most micros are crippled by noise, so the last 1-2 bits are just fiction.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Online fourfathom

  • Super Contributor
  • ***
  • Posts: 1851
  • Country: us
Re: PWM-ing the LSB of a DAC
« Reply #9 on: December 03, 2021, 05:50:08 pm »
the ADCs and DACs which are on-chip in most micros are crippled by noise, so the last 1-2 bits are just fiction.

No, they are free dithering!  (or not, of course, depending on the noise.)
We'll search out every place a sick, twisted, solitary misfit might run to! -- I'll start with Radio Shack.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf