Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 23 |
Nodes: | 6 (0 / 6) |
Uptime: | 54:44:02 |
Calls: | 583 |
Files: | 1,139 |
D/L today: |
179 files (27,921K bytes) |
Messages: | 111,801 |
Hi
I am working on an application where I need pico second timing in a
power stage.
My go to controller, the STM32G071 only have 128MHz timer clock, and I
am running the stage at 250kHz, leaving 0.2%/8ns resolution on the duty cycle.
I need more. I could use the STM32F334, which has picosecond timer,
using 144MHz timer clock followed by 217ps delay lines. But. it's 3 USD
in quantity.
Any other options that are low cost? (I guess FPGA's can do it, but none comes close to much less than 3 USD)
Klaus Kragelund <klauskvik@hotmail.com> wrote:
Hi
I am working on an application where I need pico second timing in a
power stage.
My go to controller, the STM32G071 only have 128MHz timer clock, and I
am running the stage at 250kHz, leaving 0.2%/8ns resolution on the duty
cycle.
I need more. I could use the STM32F334, which has picosecond timer,
using 144MHz timer clock followed by 217ps delay lines. But. it's 3 USD
in quantity.
Any other options that are low cost? (I guess FPGA's can do it, but none
comes close to much less than 3 USD)
A 20-ns RC ramp driven by a separate CMOS buffer, with a level detector
made from a spare DAC channel and a FIN1002 line receiver.
We do that in our TDR and sampler offeringsrCowith two FIN1002s, the relative jitter is way down in the single-digit picoseconds.
Klaus Kragelund <klauskvik@hotmail.com> wrote:
Hi
I am working on an application where I need pico second timing in a
power stage.
My go to controller, the STM32G071 only have 128MHz timer clock, and I
am running the stage at 250kHz, leaving 0.2%/8ns resolution on the duty
cycle.
I need more. I could use the STM32F334, which has picosecond timer,
using 144MHz timer clock followed by 217ps delay lines. But. it's 3 USD
in quantity.
Any other options that are low cost? (I guess FPGA's can do it, but none
comes close to much less than 3 USD)
A 20-ns RC ramp driven by a separate CMOS buffer, with a level detector
made from a spare DAC channel and a FIN1002 line receiver.
We do that in our TDR and sampler offeringsuwith two FIN1002s, the relative >jitter is way down in the single-digit picoseconds.
Cheers
Phil Hobbs
Hi
I am working on an application where I need pico second timing in a
power stage.
My go to controller, the STM32G071 only have 128MHz timer clock, and I
am running the stage at 250kHz, leaving 0.2%/8ns resolution on the duty >cycle.
I need more. I could use the STM32F334, which has picosecond timer,
using 144MHz timer clock followed by 217ps delay lines. But. it's 3 USD
in quantity.
Any other options that are low cost? (I guess FPGA's can do it, but none >comes close to much less than 3 USD)
On Sat, 30 Aug 2025 03:06:27 +0200, Klaus Kragelund
<klauskvik@hotmail.com> wrote:
Hi
I am working on an application where I need pico second timing in a
power stage.
My go to controller, the STM32G071 only have 128MHz timer clock, and I
am running the stage at 250kHz, leaving 0.2%/8ns resolution on the duty
cycle.
I need more. I could use the STM32F334, which has picosecond timer,
using 144MHz timer clock followed by 217ps delay lines. But. it's 3 USD
in quantity.
Any other options that are low cost? (I guess FPGA's can do it, but none
comes close to much less than 3 USD)
Why picoseconds in a power stage?
Can you dither it? We're doing that in a class-D amp to get around
some near-the-rail nonlinearities.
PID control loops will often dither themselves.
That STM has DACs and one of them could be used to improve PWM
resolution if you really need to.
Klaus Kragelund <klauskvik@hotmail.com> wrote:
Hi
I am working on an application where I need pico second timing in a
power stage.
My go to controller, the STM32G071 only have 128MHz timer clock, and I
am running the stage at 250kHz, leaving 0.2%/8ns resolution on the duty
cycle.
I need more. I could use the STM32F334, which has picosecond timer,
using 144MHz timer clock followed by 217ps delay lines. But. it's 3 USD
in quantity.
Any other options that are low cost? (I guess FPGA's can do it, but none
comes close to much less than 3 USD)
A 20-ns RC ramp driven by a separate CMOS buffer, with a level detector
made from a spare DAC channel and a FIN1002 line receiver.
We do that in our TDR and sampler offeringsrCowith two FIN1002s, the relative jitter is way down in the single-digit picoseconds.
Hi
I am working on an application where I need pico second timing in a
power stage.
My go to controller, the STM32G071 only have 128MHz timer clock, and I
am running the stage at 250kHz, leaving 0.2%/8ns resolution on the duty cycle.
I need more. I could use the STM32F334, which has picosecond timer,
using 144MHz timer clock followed by 217ps delay lines. But. it's 3 USD
in quantity.
Any other options that are low cost? (I guess FPGA's can do it, but none comes close to much less than 3 USD) >
On 8/30/25 03:06, Klaus Kragelund wrote:
Hi
I am working on an application where I need pico second timing in a
power stage.
My go to controller, the STM32G071 only have 128MHz timer clock, and I
am running the stage at 250kHz, leaving 0.2%/8ns resolution on the
duty cycle.
I need more. I could use the STM32F334, which has picosecond timer,
using 144MHz timer clock followed by 217ps delay lines. But. it's 3
USD in quantity.
Any other options that are low cost? (I guess FPGA's can do it, but
none comes close to much less than 3 USD) >
stm32g474 also hrtimer, afair ~180ps resolution. it is something like $3
in singles-a at jlcpcb, so I can't imagine they are anywhere hear $3 in volume
Klaus Kragelund <klauskvik@hotmail.com> wrote:
Hi
I am working on an application where I need pico second timing in a
power stage.
My go to controller, the STM32G071 only have 128MHz timer clock, and I
am running the stage at 250kHz, leaving 0.2%/8ns resolution on the duty
cycle.
I need more. I could use the STM32F334, which has picosecond timer,
using 144MHz timer clock followed by 217ps delay lines. But. it's 3 USD
in quantity.
Any other options that are low cost? (I guess FPGA's can do it, but none
comes close to much less than 3 USD)
A 20-ns RC ramp driven by a separate CMOS buffer, with a level detector
made from a spare DAC channel and a FIN1002 line receiver.
We do that in our TDR and sampler offeringsrCowith two FIN1002s, the relative jitter is way down in the single-digit picoseconds.
On Sat, 30 Aug 2025 03:06:27 +0200, Klaus Kragelund
<klauskvik@hotmail.com> wrote:
Hi
I am working on an application where I need pico second timing in a
power stage.
My go to controller, the STM32G071 only have 128MHz timer clock, and I
am running the stage at 250kHz, leaving 0.2%/8ns resolution on the duty
cycle.
I need more. I could use the STM32F334, which has picosecond timer,
using 144MHz timer clock followed by 217ps delay lines. But. it's 3 USD
in quantity.
Any other options that are low cost? (I guess FPGA's can do it, but none
comes close to much less than 3 USD)
Why picoseconds in a power stage?
Can you dither it? We're doing that in a class-D amp to get around
some near-the-rail nonlinearities.
PID control loops will often dither themselves.
That STM has DACs and one of them could be used to improve PWM
resolution if you really need to.
On 30/08/2025 18:05, john larkin wrote:
On Sat, 30 Aug 2025 03:06:27 +0200, Klaus KragelundI could possibly do dithering. This is for a halfbridge stage feeding >current into a battery. The battery voltage is solid, so need high >resolution of the output PWM to get good accuracy on the charging current.
<klauskvik@hotmail.com> wrote:
Hi
I am working on an application where I need pico second timing in a
power stage.
My go to controller, the STM32G071 only have 128MHz timer clock, and I
am running the stage at 250kHz, leaving 0.2%/8ns resolution on the duty
cycle.
I need more. I could use the STM32F334, which has picosecond timer,
using 144MHz timer clock followed by 217ps delay lines. But. it's 3 USD
in quantity.
Any other options that are low cost? (I guess FPGA's can do it, but none >>> comes close to much less than 3 USD)
Why picoseconds in a power stage?
Can you dither it? We're doing that in a class-D amp to get around
some near-the-rail nonlinearities.
PID control loops will often dither themselves.
That STM has DACs and one of them could be used to improve PWM
resolution if you really need to.
Could add a LC filter with larger output capacitors to bring the cutoff >frequency down, allowing for dithering, but trying to reduce cost, thus >minimum capacitor size that the ripple current allows for.
Noise in the system will probably result in some dithering anyway,
coming from quantization of the current measurement.
Since the battery voltage is solid, I have turned down the integration
gain of the compensator, and then running an outer current loop to
regulate the PWM.
On Sun, 31 Aug 2025 13:42:55 +0200, Klaus Kragelund
<klauskvik@hotmail.com> wrote:
On 30/08/2025 18:05, john larkin wrote:
On Sat, 30 Aug 2025 03:06:27 +0200, Klaus KragelundI could possibly do dithering. This is for a halfbridge stage feeding
<klauskvik@hotmail.com> wrote:
Hi
I am working on an application where I need pico second timing in a
power stage.
My go to controller, the STM32G071 only have 128MHz timer clock, and I >>>> am running the stage at 250kHz, leaving 0.2%/8ns resolution on the duty >>>> cycle.
I need more. I could use the STM32F334, which has picosecond timer,
using 144MHz timer clock followed by 217ps delay lines. But. it's 3 USD >>>> in quantity.
Any other options that are low cost? (I guess FPGA's can do it, but none >>>> comes close to much less than 3 USD)
Why picoseconds in a power stage?
Can you dither it? We're doing that in a class-D amp to get around
some near-the-rail nonlinearities.
PID control loops will often dither themselves.
That STM has DACs and one of them could be used to improve PWM
resolution if you really need to.
current into a battery. The battery voltage is solid, so need high
resolution of the output PWM to get good accuracy on the charging current. >>
Could add a LC filter with larger output capacitors to bring the cutoff
frequency down, allowing for dithering, but trying to reduce cost, thus
minimum capacitor size that the ripple current allows for.
Noise in the system will probably result in some dithering anyway,
coming from quantization of the current measurement.
Yes. I did a bunch (sold tens of thousands) of electric meters that
used a single-slope 7-bit ADC to get infinite current sensor
resolution. Just added a triangle to the current transformer signal,
which smeared out a few LSBs.
Since the battery voltage is solid, I have turned down the integration
gain of the compensator, and then running an outer current loop to
regulate the PWM.
0.2% isn't enough resolution for a battery?
If the loop is PID, the output must average exact. It will dither
itself as needed.
Or, add a few LSBs of gaussian or pseudorandom noise to the PWM, and
that will smear the quantization and make things linear to below an
LSB.
Over the top, just for fun, delta-sigma the LSB to get, say, 32 bit resolution.
All those are pretty much equivalent. Batteries aren't very wideband
devices.
On 31/08/2025 16:46, john larkin wrote:
On Sun, 31 Aug 2025 13:42:55 +0200, Klaus Kragelund
<klauskvik@hotmail.com> wrote:
On 30/08/2025 18:05, john larkin wrote:
On Sat, 30 Aug 2025 03:06:27 +0200, Klaus KragelundI could possibly do dithering. This is for a halfbridge stage feeding
<klauskvik@hotmail.com> wrote:
Hi
I am working on an application where I need pico second timing in a
power stage.
My go to controller, the STM32G071 only have 128MHz timer clock, and I >>>>> am running the stage at 250kHz, leaving 0.2%/8ns resolution on the
duty
cycle.
I need more. I could use the STM32F334, which has picosecond timer,
using 144MHz timer clock followed by 217ps delay lines. But. it's 3 >>>>> USD
in quantity.
Any other options that are low cost? (I guess FPGA's can do it, but >>>>> none
comes close to much less than 3 USD)
Why picoseconds in a power stage?
Can you dither it? We're doing that in a class-D amp to get around
some near-the-rail nonlinearities.
PID control loops will often dither themselves.
That STM has DACs and one of them could be used to improve PWM
resolution if you really need to.
current into a battery. The battery voltage is solid, so need high
resolution of the output PWM to get good accuracy on the charging
current.
Could add a LC filter with larger output capacitors to bring the cutoff
frequency down, allowing for dithering, but trying to reduce cost, thus
minimum capacitor size that the ripple current allows for.
Noise in the system will probably result in some dithering anyway,
coming from quantization of the current measurement.
Yes. I did a bunch (sold tens of thousands) of electric meters that
used a single-slope 7-bit ADC to get infinite current sensor
resolution. Just added a triangle to the current transformer signal,
which smeared out a few LSBs.
Since the battery voltage is solid, I have turned down the integration
gain of the compensator, and then running an outer current loop to
regulate the PWM.
0.2% isn't enough resolution for a battery?
The input voltage to the buck is 48V, so the resolution at 0.2% equates
to 0.1V discrete steps. The internal resistance of the battery is 4mohm, resulting in current resolution of 25A.
I need of course to add lead resistances, and my current sense of 1mohm,
but it's still way above what I need. I would expect to be able to
control the current in 100mA steps.
If the loop is PID, the output must average exact. It will dither
itself as needed.
Or, add a few LSBs of gaussian or pseudorandom-a noise to the PWM, and
that will smear the quantization and make things linear to below an
LSB.
Over the top, just for fun, delta-sigma the LSB to get, say, 32 bit
resolution.
All those are pretty much equivalent. Batteries aren't very wideband
devices.