資源簡(jiǎn)介
這是郭天祥主講的《十天學(xué)會(huì)單片機(jī)》里的開發(fā)板proteus版本,使用該proteus版本開發(fā)板學(xué)習(xí)單片機(jī)可以和《十天學(xué)會(huì)單片機(jī)》配套使用,無需購買開發(fā)板就可以輕松學(xué)習(xí)單片機(jī)知識(shí),為初學(xué)者提供很好的學(xué)習(xí)平臺(tái),另外里面還有一個(gè)我編寫好的1602LCD液晶時(shí)鐘程序,方便大家學(xué)習(xí)交流
代碼片段和文件信息
#include
#include
#define?uint?unsigned?int
#define?uchar?unsigned?char
sbit?lcden=P3^4;
sbit?rs=P3^5;
sbit?dula=P2^6;
sbit?wela=P2^7;
sbit?rd=P3^7;
sbit?s1=P3^0;
sbit?s2=P3^1;
sbit?s3=P3^2;
uchar?code?table1[]=“?2009-07-18?MON“;
uchar?code?table2[]=“????00:00:00“;
uchar?*table3[]={“SUN““MON““TUE““WED““THU““FRI““STA“};
uchar?countday=1;
uint?count=0;
char?month=7day=18shifenmiao;
uint?year=2009;
uchar?counts1=0;
void?delay(uint?z)
{
uint?xy;
for(x=z;x>0;x--)
for(y=112;y>0;y--);
}
void?delay_us(uint?z)
{
for(;z>0;z--)
_nop_();
}
void?write_com(uchar?com)
{
rs=0;
P0=com;
delay(1);
lcden=1;
delay(5);
lcden=0;
delay(1);
}
void?write_dat(uchar?dat)
{
rs=1;
P0=dat;
delay(1);
lcden=1;
delay(5);
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????205032??2009-09-03?15:17??1602液晶時(shí)鐘\Last?Loaded?郭天祥.DBK
?????文件???????5115??2002-04-16?15:32??1602液晶時(shí)鐘\STARTUP.A51
?????文件??????16275??2009-07-19?04:56??1602液晶時(shí)鐘\timer
?????文件???????6550??2009-07-19?04:55??1602液晶時(shí)鐘\timer.c
?????文件???????5196??2009-07-19?04:56??1602液晶時(shí)鐘\timer.hex
?????文件??????22796??2009-07-19?04:56??1602液晶時(shí)鐘\timer.LST
?????文件??????24131??2009-07-19?04:56??1602液晶時(shí)鐘\timer.M51
?????文件??????19300??2009-07-19?04:56??1602液晶時(shí)鐘\timer.OBJ
?????文件???????1253??2009-07-27?20:17??1602液晶時(shí)鐘\timer.Opt
?????文件????????197??2009-07-27?20:21??1602液晶時(shí)鐘\timer.plg
?????文件???????2000??2009-07-19?02:20??1602液晶時(shí)鐘\timer.Uv2
?????文件???????1253??2009-07-20?23:04??1602液晶時(shí)鐘\timer_Opt.Bak
?????文件???????1982??2009-07-18?21:17??1602液晶時(shí)鐘\timer_Uv2.Bak
?????文件?????204602??2010-05-10?10:58??1602液晶時(shí)鐘\郭天祥.DSN
?????文件???????1054??2010-05-10?10:59??1602液晶時(shí)鐘\郭天祥.PWI
?????目錄??????????0??2010-05-10?10:59??1602液晶時(shí)鐘
-----------?---------??----------?-----??----
???????????????516736????????????????????16
評(píng)論
共有 條評(píng)論