Microchip | The Embedded Control Solutions Company Register Login
Browse All
Microchip Technology
 305 Code Snippets

CE025 - SMPS Negative Deadtime

Microchip Technology

This code example illustrates the use of Negative Dead-time in the PWM module in the dsPIC30F1010/202x SMPS family with ADC triggers. The code was developed with the dsPICDEM Buck Development Board.

About this Code Example

This program illustrates the use of Negative Dead-time in the PWM module in the dsPIC30F1010/202x SMPS family with ADC triggers. The PWM outputs are configured with negative deadtime and configured to
generate ADC triggers. PWM1 generates a trigger on ADC channel 5 while PWM2 triggers ADC channel 6 on alternate PWM cycles, and in the middle of the PWM period. The converted ADC value is used to update the duty cycles of PWM1 and PWM2. The voltage at AN5 decides duty cycle of PWM, while the voltage at AN6 decides duty cycle of PWM2.

Review the enclosed Readme file for more information.

Categories

Release History

  • Jul 22, 2011

    Version: 1.0.0

    Initial code release 8/14/09.

Download Contact the Developer

*Required Fields

  • Current Version:1.0.0
  • Created:Jul 22, 2011
  • Updated:Feb 26, 2015
  • Downloads:746
  • MPLAB Version:latest
  • C Compiler:MPLAB C30
  • Development Tools:dsPICDEM Buck Development Board
  • Supported Devices:dsPIC30F, dsPIC33F

Corporate News

Resources

Stay Connected

Stay up to date with the latest news from Microchip Technology.