標(biāo)題:
單片機(jī)流水查表的與移動(dòng)兩種方法
[打印本頁(yè)]
作者:
莫笑丶良
時(shí)間:
2017-11-10 08:29
標(biāo)題:
單片機(jī)流水查表的與移動(dòng)兩種方法
0.png
(1.83 KB, 下載次數(shù): 62)
下載附件
2017-11-10 20:13 上傳
單片機(jī)源程序如下:
#include<reg52.h>
#define uchar unsigned char
uchar q;
void delay(i)
{
uchar x,y,z;
for(x=i;x>0;x--)
for(y=200;y>0;y--)
for(z=248;z>0;z--);
}
void main()
{
while(1)
{
uchar code table[]={
0xfe,0xfd,0xfb,0xf7,
0xef,0xdf,0xbf,0x7f,
0xbf,0xdf,0xef,0xf7,
0xfb,0xfd,0xff
};
if(table[q]!=0xff)
{
P1=table[q];
q++;
delay(2);
}
else
……………………
…………限于本文篇幅 余下代碼請(qǐng)從51黑下載附件…………
復(fù)制代碼
所有資料51hei提供下載:
流水雙向兩種方法.rar
(27.02 KB, 下載次數(shù): 6)
2017-11-10 08:27 上傳
點(diǎn)擊文件名下載附件
下載積分: 黑幣 -5
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1