L
Lasse Langwadt Christense
Guest
lørdag den 12. oktober 2019 kl. 00.11.46 UTC+2 skrev John Larkin:
but then you get the issue of how well analog matched the two outputs are
by inverting I meant reversing the bit order
i.e. 50% output becomes
hi-lo-hi-lo-hi-lo-hi-lo instead of hi-hi-hi-hi-lo-lo-lo-lo
On Fri, 11 Oct 2019 14:15:06 -0700 (PDT), Lasse Langwadt Christensen
langwadt@fonz.dk> wrote:
fredag den 11. oktober 2019 kl. 22.52.50 UTC+2 skrev John Larkin:
On Fri, 11 Oct 2019 16:17:51 -0400, Phil Hobbs
pcdhSpamMeSenseless@electrooptical.net> wrote:
On 2019-10-11 15:54, Andy Bennet wrote:
On 11/10/2019 18:16, Phil Hobbs wrote:
Hi, all,
As part of the aforementioned cathodolumiescence system, I'm doing a
bias supply for multipixel photon counters (MPPCs).
MPPCs are extremely voltage sensitive--the gain of this one goes from
~0 to 2E6 between 52 and 55 volts' bias. (See
https://www.hamamatsu.com/resources/pdf/ssd/e03_handbook_si_apd_mppc.pdf>.)
Sooo, there's a bit of pressure to keep the bias very stable, but it
doesn't have to change very often. Accordingly, I'm tentatively
planning to use a 12 to 16-bit PWM with good filtering. It'll
obviously have to be buffered with a tinylogic gate running from a
stiff reference supply, to prevent voltage sags inside the LPC845 MCU
from spoiling the accuracy.
The '845 can run its PWM clocks at 7.5 MHz, so that would be an output
frequency of 114 Hz to 1.8 kHz. I'd need about 100 dB of filtering to
get the output ripple on the MPPC supply down to a millivolt or so, so
that's 3 RC sections with 33 dB attenuation each, i.e. corner
frequencies of 2.5 Hz to 40 Hz (TCs of 4 to 60 ms). Not
horrible--100k*0.68uF at 16 bits, 40k and 0.1 uF at 12 bits.
Anything else besides buffering and filtering that I haven't thought
of that might limit the accuracy? How good can you make a PWM, anyway?
Thanks
Phil Hobbs
Rather than PWM, have a look at pulse density modulation which will ease
the filtering requirement. Not sure if this is do-able in software, but
I have used FPGA implementations of this with great success.
Sort of a delta-sigma thing? You can put an M-bit delta-sigma extension
on an N-bit PWM pretty easily using a timer interrupt. I don't think
we could get the required accuracy bit-banging something like that.
Cheers
Phil Hobbs
You can also delta-sigma the LSB of a PWM to effectively add more
bits. That basically interpolates between two PWM levels.
I think that may have filtering advantages. I don't know if a uP can
reasonably do that; we did it in an FPGA.
I guess you could even PWM the LSB of a PWM.
AND a fast and a slow PWM?
You could certainly analog sum two PWMs, maybe before the filter. They
could run at a much higher frequency than a single PWM of the same
resolution.
but then you get the issue of how well analog matched the two outputs are
in hardware there's also the trick of inverting some or all of the bits
in the counter
Sorry, that's too hard to think about.
by inverting I meant reversing the bit order
i.e. 50% output becomes
hi-lo-hi-lo-hi-lo-hi-lo instead of hi-hi-hi-hi-lo-lo-lo-lo