YJHN7EtzH

12V to 220V square wave inverter

 
Overview
Transformer turns calculation:
12DC-220AC
N=Vin(min)/Vo+VF*D/1-D
N=11/220+0.7*0.4/1-0.4
N=0.05*0.6
N=0.03
LP=n*D*D*Vin(min)*Vin(min)/2*Fsw*P0
LP=0.75*0.4*0.4*11*11/2*65000*100
LP=0.00139mH
lpK=2*100/0.75*12*0.4
lPK=55.5A
NP=LP*lpK/Bm*Ae
NP=0.000139*55.5/0.25*1000
NP=0.000294
NS=NP/N
NS=0.000294/0.03
NS=0.0098
NP=NS*N
NP=0.0098*0.03
NP=0.000294
NS/NP=33.3333
NS=4+4
NP=267
NE555 dual-channel driver:
f=1/[0.7*c1*(r1+2*r2)]
f=1/[0.7*0.000001*(1000+20000)]
f=68khz
Decorative lights:
#include
 
 
void Delay1ms(unsigned int xms) //@11.0592MHz
{
unsigned char data i, j;
while(xms)
{
i = 2;
j = 199;
do
{
while (--j);
} while (--i);
xms--;
}
}
 
 
void main()
{
while(1)
{
P0=0X80;Delay1ms(1000);P0=0X40;Delay1ms(950);
P0=0X20;Delay1ms(900);P0=0X10;Delay1ms(850);P0=0X08;Delay1ms(800);P0=0X04;Delay1ms(750);P0=0X02;Delay1ms(700);
P0=0X01;Delay1ms(650);P1=0X80;Delay1ms(600);P1=0X40;Delay1ms(550);P1=0X20;Delay1ms(500);P1=0X10;Delay1ms(450);
P1=0X08;Delay1ms(400);P1=0X04;Delay1ms(350);P1=0X02;Delay1ms(300);P1=0X01;Delay1ms(250);P3=0X80;Delay1ms(240);
P3=0X40;Delay1ms(230);P3=0X20;Delay1ms(220);P3=0X10;Delay1ms(210);P3=0X08;Delay1ms(200);P3=0X04;Delay1ms(190);
P3=0X02;Delay1ms(180);P3=0X01;Delay1ms(170);P2=0X80;Delay1ms(160);P2=0X40;Delay1ms(150);P2=0X20;Delay1ms(140);
P2=0X10;Delay1ms(130);P2=0X08;Delay1ms(120);P2=0X04;Delay1ms(110);P2=0X02;Delay1ms(100);P2=0X01;Delay1ms(100);
 
 
P0=P1=P2=P3=0X00;Delay1ms(250);P0=P1=P2=P3=0Xff;Delay1ms(250);P0=P1=P2=P3=0X00;Delay1ms(250);
P0=P1=P2=P3=0Xff;Delay1ms(250);P0=P1=P2=P3=0X00;Delay1ms(250);P0=P1=P2=P3=0Xff;Delay1ms(250);
P0=P1=P2=P3=0X00;Delay1ms(250);P0=P1=P2=P3=0Xff;Delay1ms(250);P0=P1=P2=P3=0X00;Delay1ms(250);
P0=P1=P2=P3=0Xff;Delay1ms(250);P0=P1=P2=P3=0X00;Delay1ms(250);P0=P1=P2=P3=0Xff;Delay1ms(250);
 
P0=P1=P2=P3=0x55;Delay1ms(400);P0=P1=P2=P3=0xAA;Delay1ms(400);
P0=P1=P2=P3=0x00;Delay1ms(400);P0=P1=P2=P3=0x55;Delay1ms(400);P0=P1=P2=P3=0xAA;Delay1ms(400);
P0=P1=P2=P3=0x00;Delay1ms(400);P0=P1=P2=P3=0x55;Delay1ms(400);P0=P1=P2=P3=0xAA;Delay1ms(400);
P0=P1=P2=P3=0x00;Delay1ms(400);P0=P1=P2=P3=0x55;Delay1ms(400);P0=P1=P2=P3=0xAA;Delay1ms(400);
P0=P1=P2=P3=0x00;Delay1ms(400);P0=P1=P2=P3=0x55;Delay1ms(400);P0=P1=P2=P3=0xAA;Delay1ms(400);
P0=P1=P2=P3=0x00;Delay1ms(400);P0=P1=P2=P3=0x55;Delay1ms(400);P0=P1=P2=P3=0xAA;Delay1ms(400);
P0=P1=P2=P3=0x00;Delay1ms(400);P0=P1=P2=P3=0x55;Delay1ms(400);P0=P1=P2=P3=0xAA;Delay1ms(400);P0=P1=P2=P3=0x00;
Delay1ms(400);P0=P1=P2=P3=0x55;Delay1ms(400);P0=P1=P2=P3=0xAA;Delay1ms(400);P0=P1=P2=P3=0x00;Delay1ms(400);
 
}
}
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2026-03-25 23:58:07

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号