leonchen
发表于 2017-11-19 07:56:31
這太厲害了頂一下
owenbeibei
发表于 2017-11-19 19:17:38
牛逼,第一次看到这么做电路板的。
zssssha
发表于 2017-11-21 09:35:51
很给力!楼主技术达人啊。
yeyuaihaozhe
发表于 2017-11-27 14:13:28
好东西,不知道是什么用,但是也顶
bigeyes0318
发表于 2017-12-3 03:03:14
楼主加油
bigeyes0318
发表于 2017-12-3 22:53:33
楼主加油
hyjdx
发表于 2017-12-3 23:15:33
好牛——
顶
收藏
wdl67
发表于 2018-1-7 11:56:57
下载的文件解压报错
蹲街看天
发表于 2018-1-14 23:43:47
http://www.moz8.com//mobcent//app/data/phiz/default/01.pnghttp://www.moz8.com//mobcent//app/data/phiz/default/01.png
ftb
发表于 2018-6-19 00:04:04
好厉害{:1_3:}{:1_6:}{:1_6:}
leigongdianmu
发表于 2018-6-19 17:32:03
学习学习,顶楼主
dukecheng
发表于 2018-6-20 15:48:40
可以可以把后面几个通道都分离出来
ldy7474
发表于 2018-6-20 23:07:18
#include"reg52.h"
#include "intrins.h"
#define u8 unsigned char
#define u16 unsigned int
sfr P3M1=0xb1;
sfr P3M0=0xb2;
sfr AUXR=0x8e;
sfr T2H=0xd6;
sfr T2L=0xd7;
sfr IE2=0xaf;
sbit outio=P3^4;
sbit k0=P3^0;
sbit k1=P3^1;
sbit k2=P3^2;
u16 ppmtemp,PPMread,outtemp;
u8 channel,i,y,yichuFlag,ch;
void zhongduan() interrupt 2
{
TR0=0;
ppmtemp=TH0;
ppmtemp=(ppmtemp<<8)|TL0;
TH0=0;
TL0=0;
TR0=1;
if(ppmtemp>2500|| yichuFlag)
{
i=1;
yichuFlag=0;
}
switch(i)
{
case 1:break;
case 2: PPMread=ppmtemp; break;
case 3: PPMread=ppmtemp; break;
case 4: PPMread=ppmtemp; break;
case 5: PPMread=ppmtemp; break;
case 6: PPMread=ppmtemp; break;
case 7: PPMread=ppmtemp; break;
case 8: PPMread=ppmtemp; break;
case 9: PPMread=ppmtemp; break;
default:break;
}
i++;
}
void shuchu() interrupt 12
{
ch=k0;
ch=(ch<<1)|k1;
ch=(ch<<1)|k2;
outtemp=PPMread;
y++;
switch(y)
{
case 1:outio=0; T2H=(65536-outtemp)/256; T2L=(65536-outtemp)%256; break;
case 2:outio=1; T2H=(45536+outtemp)/256; T2L=(45536+outtemp)%256; y=0; break;
}
}
void dingsqiTimer0(void) interrupt 1
{
yichuFlag=1;
}
void main()
{
while(1)
{
P3M0=0x10;
P3M1=0x08;
EA=1;
EX1=1;
IT1=1;
ET0=1;
TMOD=0x11;
IE2=0x04;
AUXR=0x10;
PX1=1;
}
}
ldy7474
发表于 2018-6-20 23:07:18
#include"reg52.h"
#include "intrins.h"
#define u8 unsigned char
#define u16 unsigned int
sfr P3M1=0xb1;
sfr P3M0=0xb2;
sfr AUXR=0x8e;
sfr T2H=0xd6;
sfr T2L=0xd7;
sfr IE2=0xaf;
sbit outio=P3^4;
sbit k0=P3^0;
sbit k1=P3^1;
sbit k2=P3^2;
u16 ppmtemp,PPMread,outtemp;
u8 channel,i,y,yichuFlag,ch;
void zhongduan() interrupt 2
{
TR0=0;
ppmtemp=TH0;
ppmtemp=(ppmtemp<<8)|TL0;
TH0=0;
TL0=0;
TR0=1;
if(ppmtemp>2500|| yichuFlag)
{
i=1;
yichuFlag=0;
}
switch(i)
{
case 1:break;
case 2: PPMread=ppmtemp; break;
case 3: PPMread=ppmtemp; break;
case 4: PPMread=ppmtemp; break;
case 5: PPMread=ppmtemp; break;
case 6: PPMread=ppmtemp; break;
case 7: PPMread=ppmtemp; break;
case 8: PPMread=ppmtemp; break;
case 9: PPMread=ppmtemp; break;
default:break;
}
i++;
}
void shuchu() interrupt 12
{
ch=k0;
ch=(ch<<1)|k1;
ch=(ch<<1)|k2;
outtemp=PPMread;
y++;
switch(y)
{
case 1:outio=0; T2H=(65536-outtemp)/256; T2L=(65536-outtemp)%256; break;
case 2:outio=1; T2H=(45536+outtemp)/256; T2L=(45536+outtemp)%256; y=0; break;
}
}
void dingsqiTimer0(void) interrupt 1
{
yichuFlag=1;
}
void main()
{
while(1)
{
P3M0=0x10;
P3M1=0x08;
EA=1;
EX1=1;
IT1=1;
ET0=1;
TMOD=0x11;
IE2=0x04;
AUXR=0x10;
PX1=1;
}
}
3265
发表于 2018-7-1 20:37:54
厉害 牛人
lyp315
发表于 2018-7-2 02:38:07
多谢提醒
小白兔斯基
发表于 2018-7-2 08:47:29
厉害厉害,高手!
昶春斋
发表于 2018-7-3 08:09:57
学习了
arkingzhou
发表于 2019-2-11 00:31:54
一次只能分离一个通道吗?
llan
发表于 2019-2-20 04:56:29
6666666