Code Monkey home page Code Monkey logo

buck-cascaded-pi-contyrol-2-op's Introduction

BUCK-CASCADED-PI-CONTYROL-2-OP

Dual output buck dc-dc converter control with inner current control loop. Please refer Matlab simulink file for system and control description:https://www.mathworks.com/matlabcentral/fileexchange/72728-dual-output-buck-dc-dc-converter-with-inner-current-control

Latest IDE from microchip can be found here: http://www.microchip.com/mplab/mplab-x-ide

The codes are developed for DSPIC30f6010A controller from Microchip. Detailed datasheet and information about this processor could be found here: https://www.microchip.com/wwwproducts/en/dsPIC30F6010A

The codes can be burned to the processor using suitable programmers/debuggers from microchip. Several of them could be found here: http://www.microchip.com/developmenttools/listing/bc05135f-75a9-4aa6-a6c5-82bdc9903a4c.

Key files for programming are listed here. All the files can be opened directly in the project environment of IDE itself and are burned to the processor after compilation or debugging. Also, these files can be opened directly as text or word document for viewing. Apart from below files some files are generated during compilation and are not relevant for understanding the codes.

More detailed description and functionalities about the various files are written on the files itself. Some files have codes written in C and some files have codes written in assembly. For assembly codes, inline assembly coding within c language is used.

  1. “main.c”: File contains the main code.
  2. “init.c”: File Contains processor initializations.
  3. “delay.c”: A generic code for generating delay time function.
  4. “main.h”: Contains processor dependent register definitions and functions used by main program.
  5. “user.h”: Contains definition and initialization of local variables used by the main program.
  6. “asmMATH.h”: Contains definition of Maths functions used by main program.

These files are math library files and are used for a variety of mathematical operations. These files are written in in-line assembly for fastest and optimized execution of math functions within C codes.

  1. “asmABCtoDQ.s”: Synchronous reference frame transformation of three phase quantities to d-q frame.
  2. “asmADC.s”: Reading of all ADC values and converting them directly to Q15 format.
  3. “asmDClink.s”: Reading of inverter DC link measuring ADC values and use them for fault detection or feed-forward in the case of inverter control.
  4. “asmDQtoABC.s”: Synchronous reference frame transformation of d-q quantities to three phase a-b-c.
  5. “asmFO_Filter.s”: First order low pass filter implementation.
  6. “asmHARMONIC.s”: First order harmonic oscillator implementation.
  7. “asmINT_MPQ.s”: Q15 multiplication of two numbers.
  8. “asmPIcontroller.s”: First order PI (Proportional Integral) control implementation.
  9. “asmPWM.s”: PWM processing and generating block.

These files are provided by the compiler and are processor dependent. These files must be included while compilation of code. These files are already provided with each group of code files.

  1. “p30f6010A.h”: MPLAB-C30 dsPIC30F6010A processor headers file for C.
  2. “p30f6010A.inc”: MPLAB-C30 dsPIC30F6010A processor headers file for assembly.
  3. “p30f6010A.gld”: MPLAB-C30 dsPIC30F6010A processor linkers file.

The file named with extension “.mcp” or “.mcw” is MPLAB IDE project file. After installing the MPLAB IDE, either of the file can be directly used for opening the entire project for direct compilation or burning code to the processor. However, for successful compilation of the project the compiler tool-suite path must be given properly (it must have some default path set previously) in MPLAB IDE. In MPLAB IDE v8.46 it can be done as: in project tab, select language tool-suite; set active tool-suite (here it is MICROCHIP C30 Tool-suite); set paths for each contents of tool-suit e.g. C:\Program Files \Microchip\MPLAB C30\bin___*.

Other Information: Files or functions used in each group of projects may be same. However, depending on the project objective they may have different contents and have altered function. For e.g. “asmABCtoDQ.s” gives synchronous frame transformation of three phase input quantities, but for single phase objectives the same file has been modified for unbalanced d-q frame transformation. Thus avoid mixing or replacing of the files from other projects or exercise caution. All variables for changing program settings like inverter output voltage or current are listed in “user.h” file.

buck-cascaded-pi-contyrol-2-op's People

Contributors

rajeshfarswan avatar

Stargazers

火炉旁的啸尘 avatar 林云峰 avatar  avatar

Watchers

 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.