Yes. You can use PSoC for this purpose.
PSoC has fixed function components like ADC to sense the voltage at the output and it has PWM to change the duty ratio of the control signal.
Based on the accuracy and ripple required, you can choose either PSoC 4/6 family devices. PsoC 6 is dual core SOC with ARM Cortex M4 and M0+ cores. You can implement your control logic in M4 core and sensing in M0+ core.
Please refer the following PSoC 6 family datasheets.
You can also use power PSoC CY8CLED0xx0x to implement DC-DC Buck converter. Please refer the following application note.
Thank you for the detailed answer.
I am trying to understand the limitations of the M4 processor.
For a 1MHz switching frequency, the control logic will need to execute all calculations in addition to all sampling operations in under 1us. The control logic, may include a dual-loop (as in average current mode) or include various protections functions such as filtering the sensed current/voltage, etc.
How can I determine if the processor will be able to finish all required operations before the next cycle starts?
>>For a 1MHz switching frequency, the control logic will need to execute all calculations in addition to all sampling operations in under 1us.
-->In PSoC6 the M4 core can operate upto speed of 150MHz and M0+ core can operate upto 100MHz. So based on your algorithm, you can calculate the processing power required for your application.
--> If you are using PSoC Creator, you can use the UDB blocks present inside PSoC to implement the custom digital logic for your application. UDBs work in parallel with CPU like other fixed function peripherals. I am attaching the UDB information document with this thread.
--> If possible, please attach the complete block diagram of your DC-DC converter including sensors and actuators used in the application. It will help us to respond better.
>>"How can I determine if the processor will be able to finish all required operations before the next cycle starts?"
--> If you have a development kit, you can have a try. You can also buy a low cost PSoC 63 BLE module prototyping kit from the link below:
Please have a look on DC-DC converters provided by Infineon too from the link below and let us know if you are interested.
UDB_learning.docx 114.7 K
referring to your original question. Yes you can implement a digital dc/dc controller using a PSoC, I actually think that the PSoC architecture is very good for this application, despite the limited PWM resolution (see later).
I implemented several dc/dc controller designs using a PSoC5LP, both voltage mode and average current mode controllers, but in a lower frequency range of 100kHz - 300 kHz.
In this case the major limitations (regarding switching frequency) is the lack of a high-resolution PWM module, as far as I know, in the PSoC architecture.
Therefore resolution of the digital PWM signal is limited by the controller operating clock frequency. With a maximum clock of 80MHz in the PSoC5LP, this limits the switching frequency to 314kHz (8 bit resolution) and 628kHz (7 bit resolution).
All other things could be implemented very well, even in the PSoC5LP, you can do all calculations for the control loop (pid or 3pole 3zero compensator)
in less than 3us using fixed point arithmetic (in PSoC6 the M4 core should have a floating point unit and therefore you could be faster without using fixed point arithmetic).
You can even use the digital filter block assembler in the PSoC5LP to compute the control law in less the 500ns, but I actually never used this. Also the 1MSPS ADC is fast enough for this purpose.
With the PSoC6 you should be able to get things running at 8 bit PWM resolution with 588kHz (150 MHz clock for PWM) and at 7 bit PWM resolution with 1.17 MHz (150 MHz clock for PWM),
but I do not have any experience with the PSoC6. Also the 2MSPS ADC should be sufficient for the purpose. Using the PSoC4 the frequency will be further reduced, as with the maximum clock of 48MHz you get 188kHz (8 bit PWM resolution) and 375kHz (7 bit PWM) resolution.
Therefore I think PSoC is very well suited for dc/dc control, but limited by the lack of a high-resolution PWM.