三相纯正弦波逆变器控制板
最近公司特别忙,自从前段时间发表了(大功率可调电源3600W,0-60V,0-60A)后,引起了很多朋友的关注与支持,今天再发表一帖三相纯正弦波逆变器控制板,适应机种为全高频(输入升压,输出H桥)的离网三相逆变器使用,全高频逆变器体积小,重量轻,功率大。本控制板适合1000W-850KW的三相三线和三相四线的正弦波离网逆变器使用。
使用芯片dsPIC33FJ32MC204,TQFP-44
三相纯正弦波逆变器控制板
最近公司特别忙,自从前段时间发表了(大功率可调电源3600W,0-60V,0-60A)后,引起了很多朋友的关注与支持,今天再发表一帖三相纯正弦波逆变器控制板,适应机种为全高频(输入升压,输出H桥)的离网三相逆变器使用,全高频逆变器体积小,重量轻,功率大。本控制板适合1000W-850KW的三相三线和三相四线的正弦波离网逆变器使用。
使用芯片dsPIC33FJ32MC204,TQFP-44
大家对三相纯正弦波高频逆变器有兴趣的朋友,慢慢看,我保证不会令你们失望的,主要是我最近实在忙得很,公司自动重合闸(小型断路器)订单忙,再加上本人又在学驾照,所以做调试产品的时间会长一些。
显示屏参数
二:参数说明
在这漫长的时间里,给大家看看显示程序:
#define rs _LATA8#define wr _LATA4
#define rd _LATA7
#define cs1 _LATA10
const uchar tab1[]="升压输出: (V) ";
const uchar tab3[]="逆变输出: (V) ";
const uchar tab4[]="输出频率: (HZ)";
const uchar tab5[]="供电状况: ";
const uchar tab6[]="XFZ-30K";
const uchar tab7[]="亮德利科技";
const uchar tab8[]="无输出";
const uchar tab9[]="有输出";
void delay_nms(unsigned int n)
{
unsigned int i,j;
for(i=n;i>0;i--)
{
for(j=125;j>0;j--)
{
}
}
}
void write(uchar a)
{
_LATC0=a&0X01;
_LATC1=(a&0X02)>>1;
_LATC2=(a&0X04)>>2;
_LATC3=(a&0X08)>>3;
_LATC4=(a&0X10)>>4;
_LATC5=(a&0X20)>>5;
_LATC8=(a&0X40)>>6;
_LATC9=(a&0X80)>>7; }
void init()
{
_ODCC0=1;
_ODCC1=1;
_ODCC2=1;
_ODCC3=1;
_ODCC4=1;
_ODCC5=1;
_ODCC8=1;
_ODCC9=1;
_ODCA8=1;
_ODCA4=1;
_ODCA7=1;
_ODCA10=1;
_TRISA4=0;
_TRISA7=0;
_TRISA8=0;
_TRISA10=0;
_TRISC0=0;
_TRISC1=0;
_TRISC2=0;
_TRISC3=0;
_TRISC4=0;
_TRISC5=0;
_TRISC8=0;
_TRISC9=0;
}
void LCD_CmdWrite(uchar cmd)//8080 //LCD写指令
{
rd=1;//读禁止
cs1=0;//片选使能
rs=1;//命令使能
wr=0;//写使能
write(cmd);
wr=1;//写禁止
cs1=1;//禁止片选
rs=0;
}
void LCD_DataWrite(uchar wrdata)//8080 //LCD写数据
{
rd=1;//读禁止
cs1=0;//片选使能
rs=0;//数据使能
wr=0;//写使能
write(wrdata);
wr=1;//写禁止
cs1=1;//禁止片选
rs=1;
}
/*uchar LCD_StatusRead() //LCD读状态
{
uchar Data;
cs1 = 0;//片选使能
rs = 1;//命令使能
wr = 1;
rd = 0;
Data = read();
rd = 1;
cs1 = 1;
rs = 0;
return Data;
}
uchar LCD_DataRead() //LCD读数据
{
uchar Data;
cs1 = 0;//片选使能
rs = 0;//数据使能
wr = 1;
rd = 0;
Data = read();
rd = 1;
cs1 = 1;
rs = 1;
return Data;
}*/
/////////////////清屏子程序//////////////////////////
void clear(void)
{
LCD_CmdWrite(0x00);
LCD_DataWrite(0x04); //选择绘图模式
LCD_CmdWrite(0xe0);
LCD_DataWrite(0x00);
LCD_CmdWrite(0xf0);
LCD_DataWrite(0xa8);
delay_nms(6);
}
void mulcipie(void)
{ uint i;
LCD_CmdWrite(0x60);
LCD_DataWrite(0x16);//设置X坐标
LCD_CmdWrite(0x70); //设置Y坐标
LCD_DataWrite(0xa0);
LCD_CmdWrite(0xf1);
LCD_DataWrite(0x50);
LCD_CmdWrite(0xb0);
for(i=0;i<6;i++)
{
LCD_DataWrite(tab8[i]);
delay_nms(200);
}
}
void self(void)
{ uint i;
LCD_CmdWrite(0x60);
LCD_DataWrite(0x16);//设置X坐标
LCD_CmdWrite(0x70); //设置Y坐标
LCD_DataWrite(0xa0);
LCD_CmdWrite(0xf1);
LCD_DataWrite(0x50);
LCD_CmdWrite(0xb0);
for(i=0;i<6;i++)
{
LCD_DataWrite(tab9[i]);
delay_nms(200);
}
}
void lcd_init(void)
{ uint i;
init();
clear();
LCD_CmdWrite(0x00);
LCD_DataWrite(0x0c);
LCD_CmdWrite(ADSR);
LCD_DataWrite(0x03);
LCD_CmdWrite(0x60);
LCD_DataWrite(0x08);//设置X坐标
LCD_CmdWrite(0x70); //设置Y坐标
LCD_DataWrite(0x08);
LCD_CmdWrite(0xf1);
LCD_DataWrite(0xA0);
LCD_CmdWrite(0xb0);
for(i=0;i<7;i++)
{
LCD_DataWrite(tab6[i]);
delay_nms(200);
}
LCD_CmdWrite(0x60);
LCD_DataWrite(0x00);//设置X坐标
LCD_CmdWrite(0x70); //设置Y坐标
LCD_DataWrite(0x40);
LCD_CmdWrite(0xf1);
LCD_DataWrite(0x50);
LCD_CmdWrite(0xb0);
for(i=0;i<20;i++)
{
LCD_DataWrite(tab1[i]);
delay_nms(200);
}
LCD_CmdWrite(0x60);
LCD_DataWrite(0x00);//设置X坐标
LCD_CmdWrite(0x70); //设置Y坐标
LCD_DataWrite(0x60);
LCD_CmdWrite(0xf1);
LCD_DataWrite(0x50);
LCD_CmdWrite(0xb0);
for(i=0;i<20;i++)
{
LCD_DataWrite(tab3[i]);
delay_nms(200);
}
LCD_CmdWrite(0x60);
LCD_DataWrite(0x00);//设置X坐标
LCD_CmdWrite(0x70); //设置Y坐标
LCD_DataWrite(0x80);
LCD_CmdWrite(0xf1);
LCD_DataWrite(0x50);
LCD_CmdWrite(0xb0);
for(i=0;i<20;i++)
{
LCD_DataWrite(tab4[i]);
delay_nms(200);
}
LCD_CmdWrite(0x60);
LCD_DataWrite(0x00);//设置X坐标
LCD_CmdWrite(0x70); //设置Y坐标
LCD_DataWrite(0xa0);
LCD_CmdWrite(0xf1);
LCD_DataWrite(0x50);
LCD_CmdWrite(0xb0);
for(i=0;i<20;i++)
{
LCD_DataWrite(tab5[i]);
delay_nms(200);
}
LCD_CmdWrite(0x60);
LCD_DataWrite(0x16);//设置X坐标
LCD_CmdWrite(0x70); //设置Y坐标
LCD_DataWrite(0xd0);
LCD_CmdWrite(0xf1);
LCD_DataWrite(0x00);
LCD_CmdWrite(0xb0);
for(i=0;i<18;i++)
{
LCD_DataWrite(tab7[i]);
delay_nms(200);
}
}
void display_data(unsigned char adr, unsigned int data_p)
{
unsigned char v1,v2,v3,v4;
v3=data_p%100%10;
v2=data_p%100/10;
v1=data_p/100;
//v1=data_p/1000%10;
LCD_CmdWrite(0x60);
LCD_DataWrite(0x16);//设置X坐标
LCD_CmdWrite(0x70); //设置Y坐标
LCD_DataWrite(adr+0x40);//0x60
LCD_CmdWrite(0xf1);
LCD_DataWrite(0x50);
LCD_CmdWrite(0xf0);
LCD_DataWrite(0x82);
LCD_CmdWrite(0xb0);
if(v1) {
LCD_DataWrite(0x30+v1);
delay_nms(4);
}
else {
LCD_DataWrite(0x00);
delay_nms(4);
}
LCD_DataWrite(0x30+v2);
delay_nms(4);
LCD_DataWrite(0x30+v3);
delay_nms(4);
//LCD_DataWrite(0x2e);
delay_nms(2);
//LCD_DataWrite(0x30+v4);
delay_nms(2);
}
注:现金红包仅限当日领取
活动介绍:http://www.dianyuan.com/bbs/1531738.html