Re: power supply control



Jamie Morken wrote:
Vladimir Vassilevsky wrote:


Jamie Morken wrote:

Hi,

I am using an FPGA to control a SMPS,

That doesn't make sense. For the small fraction of the cost of FPGA, you can have the very good DSP designed specifically for the power control applications. Especially if all glue logic and parts like ADCs, EEPROMs etc. are put into the account.

and was thinking that instead of the "standard" PID loop type control,

What is not right with the standard PID?

maybe it would be useful to control the power supply using a smarter algorithm.

Sure. Whatever algorithm can be done as the software.

For example if the components in the power supply are known (ie. inductance, capacitance, turns ratios, saturation current limits, V/us limits, etc) and also the power supply currents and voltages are sampled by the FPGA, couldn't formulas be used in the FPGA to control the power supply mathematically rather than using a direct PID type feedback loop?

You can take all of that into the account.

This way the next switch on-time could be mathematically calculated each cycle, not sure how well this would work, as the loads could be variable etc.

Software implementation of the smart control would be much simpler and cheaper then doing all of that in the hardware.

What would be a good low cost DSP capable of C code implementation of 100kHz PWM of 6 channels with 1MSPS sampling of 4 SPI ADC's (with digital lowpass filtering) and 1MSPS update of 2 SPI DAC's?

I think this would require parallel SPI buses from the DSP, as most SPI ADC's and DAC's that would work for me have max clock rate of 20MHz, unless they are all read sequentially on the same SPI bus I guess..

oops I mean read concurrently, as in use multiple MISO lines for the ADC's and one common SCLK and CS' for all ADC's.. would require multiple SPI buses still though, or else a software SPI with multiple polled MISO lines, how else could this be done in a DSP with multiple high speed SPI devices?

cheers,
Jamie


cheers,
Jamie




Vladimir Vassilevsky
DSP and Mixed Signal Design Consultant
http://www.abvolt.com
.



Relevant Pages

  • Re: power supply control
    ... For the small fraction of the cost of FPGA, you can have the very good DSP designed specifically for the power control applications. ... I think this would require parallel SPI buses from the DSP, as most SPI ADC's and DAC's that would work for me have max clock rate of 20MHz, unless they are all read sequentially on the same SPI bus I guess.. ...
    (sci.electronics.design)
  • Re: using FPGA in control field
    ... I want to use FPGA in control field. ... If it's 10kHz or lower then you can just code your loop in C, run it on one of the newer DSP chips, and not have to mess around with FPGAs at all. ... Don't expect the control rule to be all that simple -- one of the advantages of implementing a controller on a processor is that you can wrap it with all sorts of nonlinear frills to take care of corner cases that in an analog system you'd just have to live with, or do everything in your power to avoid. ...
    (comp.arch.fpga)
  • Re: suche Logic Analyzer
    ... Bei SPI kann man damit problemlos alle drei Singale ... anschauen und analysieren und noch ein viertes zum Triggern nehmen, ... weiteres Signal vom FPGA generiert gleichzeitig auf dem Bildschirm ... Als fauler Softwareprogrammier, der nicht dauernd in den Schaltplan ...
    (de.sci.electronics)
  • Re: Anyone get a Pictiva OLED to work?
    ... Is there a method of simply using the FPGA to control the OLED ... RS-030 reference design kit to get started. ... som upper level functions that deal with character rom and stuff like ...
    (comp.arch.fpga)
  • Re: using FPGA in control field
    ... I want to use FPGA in control field. ... most of an EP1C6 with multipliers. ... process saturates). ...
    (comp.arch.fpga)