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

CE025 - dsPIC SMPS Negative Deadtime Example

Microchip Technology

This program illustrates the use of Negative Dead-time in the PWM module in the dsPIC30F1010/202x SMPS family with ADC triggers

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 PWM1,
while the voltage at AN6 decides duty cycle of PWM2.

Categories

Release History

  • Jun 15, 2012

    Version: 1.0.0

    First release to ECS

Download Contact the Developer

*Required Fields


  • Current Version:1.0.0
  • Created:Jun 15, 2012
  • Updated:Feb 26, 2015
  • Downloads:3074
  • MPLAB Version:V8.xx or above
  • C Compiler:MCC18 v3.30 or above
  • Development Tools:N/A
  • Supported Devices:N/A

Corporate News

Resources

Stay Connected

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