rishabh3081
Newbie level 1
- Joined
- Apr 29, 2013
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,290
Admin if u could plz mail me the code for pic16f72 used in sqr wave inverter to kumar.90rishabh@gmail.com.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
/***** SINGLE PHASE INVERTER *****/
/***** uC Series : PIC16F72 *****/
/***** Prog Lang : Hi-tech C *****/
/***** IDE : MPLAB *****/
/***** *****/
#include<pic.h>
unsigned int set=600, i, ON=250, OFF=5; // FOR CHANGE THE FREQ CHANGE "ON" VALUE
void mc_init();
void delay(unsigned long);
void main()
{
mc_init();
delay(500);
do
{
RB0=0;
RB1=1;
delay(ON); // +VE PULSE
RB0=RB1=0;
delay(OFF); // DEAD TIME - ALL SW OFF
RB1=0;
RB0=1;
delay(ON); // -VE PULSE
RB0=RB1=0;
delay(OFF); // DEAD TIME - ALL SW OFF
}while(1);
}
void mc_init()
{
TRISA=0x0F;
TRISB=0x00;
TRISC=0x00;
PORTA=0X0F;
PORTB=0X00;
PORTC=0X00;
}
void delay(unsigned long del_del)
{
while(del_del--);
}
Admin if u could plz mail me the code for pic16f72 used in sqr wave inverter to kumar.90rishabh@gmail.com.