外面的风还是很大,寝室的风扇已停止了转动,为了这个板子两个菜鸟不停地焊接测试了一下午,最初的新鲜已全无,刺鼻的焊锡,发抖的双手,种种低级错误,使预期的兴奋只剩下了沉默,一片寂静,算是明白富士康员工了,还好梦犹在。
原理图
万用板最小系统(引出了P1.0,P1.5,P1.6,P1.7,P1.8,RST,GND,VCC,用电阻代替了排阻)
万用板背侧(相当的丑陋)
程序代码:
#include <reg51.h>
#include <intrins.h>
#define uchar unsigned char
uchar temp;
void delay(uint z)
{
uint x,y;
for(x=z;x>0;x--)
for(y=110;y>0;y--);
}
void main()
{
temp=0xfe;
P1=temp;
while(1)
{
delay(500);
temp=_crol_(temp,1);
P1=temp;
}
}