文章
首页 我的博文
用户137298 2008-10-17 21:35
24c04
sbit sda="P1"^2; sbit scl="P1"^1; sbit wp="P1"^0; uchar a; void delay() { ;; } void start()  {  sda=1;  delay();  scl=1;  delay();  sda=0;   ...
用户137298 2008-8-29 14:43
键盘扫描的子程序
sbit line1=P1^0; sbit line2=P1^1; sbit line3=P1^2; sbit line4=P1^3; uchar code c[]={0x3f,0x30,0x5b,0x4f,0x66,                 0x6d,0 ...
用户137298 2008-5-21 20:26
adc0809和12864的简单显示
/*-----本程序利用adc0809和12864来显示电压值到五伏-----*/ #include REG52.H #include absacc.h #define uchar unsigned char #define uint unsigned in ...
用户137298 2008-5-19 16:48
DAC0832的简单使用
/*---利用dac0832产生一个频率为1000Hz的方波---*/ #include reg51.h #include absacc.h #define uchar unsigned char #define uint unsigned int #define ...
用户137298 2008-5-14 22:07
12864的简单应用
#include reg52.h #define uchar unsigned char #define uint unsigned int sbit  RS="P2"^4;                 //定义变量 sbit  RST="P1 ...
用户137298 2008-5-12 17:18
ADC0809的使用
/*---ADC0809的使用(查询法)---*/ #include reg52.h #include absacc.h #define uchar unsigned char #define uint unsigned int #define IN0 XBYTE   ...
用户137298 2008-5-11 11:59
用两个8952作的异步串行双工通信程序
/*---用两个89S52作的异步串行双工通信之发送程序--*/ #include reg52.h #define uchar unsigned char #define uint unsigned int uchar code c ={0xc0,0xf9 ...
用户137298 2008-5-10 16:58
用两个89S52作的异步串行单工通信
/*--用两个89S52作的异步串行单工通信之发送 程序---*/ #include reg52.h #define uchar unsigned char void Serial_Init();      //声明 void Delay( ...
用户137298 2008-5-9 10:25
用89S52制作的时钟
/*-----本程序利用89S52来设计了一个时钟,前两位显示小时后两位显示分钟--- ------*/ #include reg52.h #define uchar unsigned char #define uint unsign ...
关闭 站长推荐上一条 /1 下一条