Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Flyback SMPS constant off time controller with PIC micro?

Status
Not open for further replies.
T

treez

Guest
Hi,
We wish to program the PIC16F176X micro to be a constant off time controller for a Current mode Flyback SMPS.
Please could you say if this is possible?

All we wish to do is set up its comparator to “look” at the FET source sense resistor voltage. When the sense threshold is breached, it is then required to switch the FET off (via an external gate driver IC) for an off-time of 8us….then it should switch the FET back ON again……then repeat.

There are a few other stipulants…..

That is, the ON time is obviously usually governed by the breaching of the comparator sense threshold…however , also, the ON time should be no longer than 20us.

Also, the comparator threshold should be variable and should follow a divider voltage that’s connected into its ADC input…and this being multiplied by a scaling factor between 0.1 and 1. (What the scaling factor will be will be determined by an input to another of its ADC inputs.) The divider is connected to the half sinusoidal HV DC bus after the mains rectifier.

Do you know how much it would cost to get this code written?...or do microchip have a facility to generate this code by simply describing it, as I have done here.?

PIC16F176X datasheet
https://ww1.microchip.com/downloads/en/DeviceDoc/PIC16LF1764-5-8-9-Data-Sheet-40001775E.pdf
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top