Bidirectional Operation of High Step-Down Converter

Photo of author

By Jackson Taylor

YouTube video

PROGRAM

int f=0;
                     void main()
                     {
                     unsigned int pwm_period, current_duty ;
                     current_duty=110; //duty ratio 50%
                     pwm_period = PWM1_MC_Init(50000, 0, 0x11, 0); //enable 1L AND 1H
                     pwm pins
                     PWM1_MC_Set_Duty(current_duty, 1) ;
                     PWM1_MC_Start();
                     DTCON1=5;
                     while (1)
                     {
                     }
                     }
                     }
See also
Bidirectional Operation of High Step-Down Converter