91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 111KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-01
  • 語言: 其他
  • 標簽: 懸掛??源程序??

資源簡介

懸掛運動控制系統的源程序 實現畫圓 畫直線 并有PROTUES仿真

資源截圖

代碼片段和文件信息

/*******************************************************************
**函數功能:LCD的驅動函數 ??**
**創建人:zhangshy?? ??**
**創建日期:2009-8-15 ??**
**版本:1.0 ??**
*******************************************************************/

#include?“1602.h“

/*************************************************************
**功能:判斷LCD忙 **
**參數:無??????? **
*************************************************************/
void?wait()
{
while(1)
{
lcd?=?0xff;
rs?=?0;
rw?=?1;
e?=0;
e?=1;
if(bf?==?0)
break;
}
}

/**************************************************************
**功能:寫LCD函數 ?**
**參數:style為寫命令/數據,0-命令,1-數據;input為寫入的8位?**
** 命令/數據 ?**
**************************************************************/
void?Lcd_Write(bit?styleunsigned?char?input)
{
wait();
lcd?=?input;
rs?=?style;
rw?=?0;
e?=?1;
e?=?0;
}

/****************************************************************
**功能:顯示位置設置 ???**
**參數:x-行;y-列 ???**
****************************************************************/
void?Setpos(uchar?xuchar?y)
{
if(y==0)??
Lcd_Write(Lcd_Command0x80+x);
else?
Lcd_Write(Lcd_Command0xc0+x);
}
/****************************************************************
**功能:寫字符串????? ???**
**參數:字符串,長度 ???**
****************************************************************/
void?write_strdata(uchar?*suchar?length)
{
uchar?i;
for(i=?0;i????{
Lcd_Write(Lcd_Data*s);?
???? s++;
}
}
/****************************************************************
**功能:寫數字字母????? ???**
**參數:顯示數組,長度 ???**
****************************************************************/
void?print_char(uchar?*suchar?length)
{
uchar?ia;
for(i=0;i {
a?=?*s;
if(?a?>=?0?&&?a?<=?9?)
Lcd_Write(Lcd_Data?a?+?‘0‘);
else?if(a?>=?0x0a?&&a?<=?0x0f)
Lcd_Write(Lcd_Dataa+0x37);
s++;
}
}

/****************************************************************
**功能:寫一個數字字母????? ???**
**參數:顯示數組,長度 ???**
****************************************************************/
void?print_char1(uchar?a)
{
if(?a?>=?0?&&?a?<=?9?)
Lcd_Write(Lcd_Data?a?+?‘0‘);
else?if(a?>=?0x0a?&&a?<=?0x0f)
Lcd_Write(Lcd_Dataa+0x37);
}

/****************************************************************
**功能:LCD清屏函數 ???????**
**參數:無????? ???????**
****************************************************************/
void?ClrScreen(void)
{

Lcd_Write(Lcd_Command0x01);

}

/****************************************************************
**功能:LCD初始化 ???????**
**參數:取值如下 ???**
****************************************************************/

void?Lcd_Init(void)
{

Lcd_Write(Lcd_Command0x01);//清屏
Lcd_Write(Lcd_Command0x38);//設置顯示模式
Lcd_Write(Lcd_Command0x0C);//打開顯示不顯示光標,光標不閃爍
Lcd_Write(Lcd_Command0x

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

????.......??????2212??2009-08-20?11:39??xg52\xg_Uv2.Bak

?????文件???????6376??2005-03-22?15:22??xg52\STARTUP.A51

?????文件????????212??2011-07-04?21:14??xg52\xg.plg

?????文件???????1010??2009-08-20?10:20??xg52\key.h

?????文件??????14048??2009-08-20?10:15??xg52\STARTUP.LST

?????文件??????48754??2011-07-04?16:08??xg52\xg.M51

?????文件?????143719??2009-08-21?16:11??xg52\xg.DSN

?????文件???????2007??2009-08-20?10:16??xg52\key.c

?????文件????????749??2009-08-20?10:15??xg52\STARTUP.OBJ

?????文件????????768??2011-07-04?11:59??xg52\xg.PWI

?????文件???????2758??2009-08-20?11:04??xg52\1602.h

?????文件?????143719??2009-08-21?16:09??xg52\Last?Loaded?xg.DBK

?????文件???????3215??2009-08-20?10:17??xg52\1602.c

?????文件????????102??2009-08-21?16:12??xg52\說明.txt

?????文件???????8484??2009-08-21?16:10??xg52\main.c

?????文件???????1398??2009-08-20?10:19??xg52\motor.h

?????文件???????5329??2009-08-21?15:58??xg52\motor.c

?????文件??????21047??2011-07-04?16:08??xg52\xg.hex

?????文件???????6788??2011-07-04?16:08??xg52\key.LST

?????文件???????4589??2011-07-04?16:08??xg52\key.OBJ

?????文件???????7757??2011-07-04?16:08??xg52\1602.LST

?????文件???????6127??2011-07-04?16:08??xg52\1602.OBJ

?????文件??????22698??2011-07-04?16:08??xg52\main.LST

?????文件??????25802??2011-07-04?16:08??xg52\main.OBJ

?????文件??????11173??2011-07-04?16:08??xg52\motor.LST

?????文件??????22187??2011-07-04?16:08??xg52\motor.OBJ

?????文件??????48487??2011-07-04?16:08??xg52\xg

?????文件???????2093??2011-07-04?16:22??xg52\xg.Uv2

????.......??????1261??2011-07-04?16:22??xg52\xg_Opt.Bak

?????文件???????1261??2011-07-04?21:14??xg52\xg.Opt

............此處省略4個文件信息

評論

共有 條評論