Skip to main content
Application NoteMicrochip

Flyback SMPS Using a Microcontroller as Control Unit (AN2122)

A design guide for a 20W isolated flyback SMPS using the PIC16F1769 microcontroller and Core Independent Peripherals (CIPs) for logic and analog control.

View application note

Overview

This application note details the design, construction, and testing of a 20W isolated flyback Switched Mode Power Supply (SMPS) utilizing the PIC16F1769 microcontroller. The design leverages Core Independent Peripherals (CIPs), including operational amplifiers, comparators, and the Complementary Output Generator (COG), to implement current-mode control logic while minimizing CPU overhead. Supporting a universal AC input range of 84 VAC to 276 VAC, the supply provides a 12V DC output at up to 1.7A. The document provides a comprehensive overview of flyback theory (CCM, DCM, and CrCM modes), component selection, transformer design, and stability compensation, alongside instructions for using the Microchip Code Configurator (MCC) for peripheral setup.

Use Cases

  • Low-power AC/DC power supplies
  • Isolated DC/DC conversion
  • Smart power supply monitoring and communication
  • Universal input chargers
  • Standby power supplies for PCs and industrial equipment

Topics

PIC16F1769
Flyback SMPS
Core Independent Peripherals
CIP
Current-Mode Control
AC/DC Converter
Microchip Code Configurator
MCC
Isolated Power Supply
20W SMPS

Referenced Parts

PIC16F1769

Microchip

This application note describes the steps taken to design, build and test a 20W Flyback Switched Mode Power Supply (SMPS) that uses the PIC16F1769 to control the circuit.

Flyback SMPS Using a Microcontroller as Control Unit (AN2122) | Design Resources