Coder Social home page Coder Social logo

microchip-pic-avr-examples / dpsk3-power-buck-peak-current-mode-control Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 10.22 MB

Digital control loop implementation of a simple peak current mode controller regulating the output voltage of a synchronous buck converter

Home Page: https://microchip-pic-avr-examples.github.io/dpsk3-power-buck-peak-current-mode-control/

License: Other

Makefile 0.25% C 94.74% C++ 1.99% Assembly 3.01% Batchfile 0.01%
dspic dsc digital-power-conversion digital-filters power-conversion power-supply smps

dpsk3-power-buck-peak-current-mode-control's Introduction

image


dsPIC33C Digital Power Starter Kit

Synchronous Buck Converter: Peak Current Mode Control

dsPIC33C Digital Power Starter Kit  

dsPIC33C Digital Power Starter Kit (DPSK3) (Part-No. DM330017-3)


Summary

Peak current mode control example for the buck converter on the Digital Power Starter Kit, version 3 (DPSK3) featuring the dsPIC33CK family of devices.


Description

This code example demonstrates the implementation of a simple peak current mode control loop for the synchronous buck converter. The loop implementation also includes the required state machine managing board status analysis, start-up control, operation monitoring, fault handling and auto-restart capability. The buck converter state machine is based on a generic library package, which is configured and executed in user code.

This code example also includes the LCD driver allowing users to observe runtime data on the on-board LC display. The on-board user switch USER allows users to change the active display page to observe input voltage, output voltage, output current, board temperature and the most recent firmware version.

Related Documentation

Firmware Documentation

Hardware and Target Device Documentation

Please always check for the latest data sheets on the respective product websites:

Software Used

Hardware Used

Supported Target Devices

Focus Microchip Technology Devices

Further Microchip Technology Devices used in this Design

a) Power Supply Circuit

b) Protection Circuit

c) Communication, Programming/Debugging and Housekeeping

Security and Safety Requirements

Unattended operating power supplies are always a potential safety risk as short circuits or failures of power components can occur at any time where even seemingly small power converters can cause fire or damage connected equipment.

  • This development board has not been FCC approved nor certified and must not be used outside a laboratory environment
  • Never operate the board unattended
  • Only use power supplies delivered with the board or equal, approved laboratory equipment
  • Read the user guide for detailed operating instructions to prevent damage to the board or connected equipment

Setup

  • Connect dsPIC33C Digital Power Starter Kit to the PC using the micro-USB cable
  • Open and compile the firmware; program the target device
  • Attach the 9V power supply to the board and observe the real-time values on the LC display


DPSK3 Buck Converter Test Points

Operation

After the device has been programmed and the target device starts up, the LC display will show the startup screen for approx. 3 seconds before switching to the runtime data display, showing the most recent input and output voltages. In case an appropriate power supply has been attached to the DPSK3 power input and the firmware is running correctly, the display should show an output voltage of +3.30 V DC.

When pressing the on-board button USER for one second or longer, the screen can be switched between:

  • Output Voltage View
  • Temperature View
  • Output Current View1
  • Firmware Version

1) In peak current mode control, the inductor current is estimated and not measured. Value shown in Current View may therefore be affected by some 5-10% error, depending on operating conditions

By pressing the Buck Load on-board push button on the right edge of the board for less than a second, changes the static load level in four steps:

  • no LED: 0% (0 mA)
  • 1 LEDs: 10% (100 mA)
  • 2 LEDs: 50% (500 mA)
  • 3 LEDs: 100% (1000 mA)

(value accuracy +/- 10%)

By pressing the Buck Load on-board push button on the right edge of the board for longer than a second, the load switches into stepping mode.

  • Flashing LEDs indicate the upper step limit
  • Static LEDs indicate the lower step limit

Pressing the Buck Load on-board push button again for less than a second, the step load can be adjusted between

  • 10% to 50% Load (100-500 mA)
  • 10% to 100% Load (100-1000 mA)
  • 50% to 100% Load (500-1000 mA)

(value accuracy +/- 10%)

For more information, please read the Digital Power Starter Kit 3 User Guide.


© 2021, Microchip Technology Inc.

dpsk3-power-buck-peak-current-mode-control's People

Contributors

areiter128 avatar harishagari avatar mmpallones avatar mpallones avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.