久久久国产精品视频袁燕,99re久久精品国产,亚洲欧美日韩国产综合v,天天躁夜夜躁狠狠久久,激情五月婷婷激情五月婷婷

  • 回復(fù)
  • 收藏
  • 點(diǎn)贊
  • 分享
  • 發(fā)新帖

為什么延時(shí)程序不好使 數(shù)碼管全都是八啊

bd4c9313b07eca8077a44982932397dda044838a

#include

#define uint unsigned int

#define uchar unsigned char

sbit du=P2^6;

sbit we=P2^7;

uchar number ;

uchar code table[]={

0x3f,0x06,0x5b,0x4f,

0x66,0x6d,0x7d,0x07,

0x7f,0x6f,0x77,0x7c,

0x39,0x5e,0x79,0x71};

void delay(uint);

void main()

{

we=0;

P0=0x00;

we=1;

while(1)

{

for(number=0;number<16;number++)

{

du=0;

P0=table[number];

delay(500);

du=1;

}

}

}

void delay(uint x)

{

uint i,j;

for(i=x;i<0;i--)

for(j=110;j<0;j--);

}

全部回復(fù)(23)
正序查看
倒序查看
daylight
LV.4
2
2014-02-26 22:21
請(qǐng)問(wèn)你用的什么模擬軟件
0
回復(fù)
candyman
LV.2
3
2014-02-26 22:22
@daylight
請(qǐng)問(wèn)你用的什么模擬軟件
仿真 知道 哪錯(cuò)了嗎 編譯啥的都沒(méi)錯(cuò)
0
回復(fù)
candyman
LV.2
4
2014-02-26 22:22
@daylight
請(qǐng)問(wèn)你用的什么模擬軟件
proteus 7
0
回復(fù)
2014-02-26 22:24
@candyman
proteus7
你的程序都沒(méi)有位選掃描嗎
0
回復(fù)
candyman
LV.2
6
2014-02-26 22:26
@金魚(yú)1
你的程序都沒(méi)有位選掃描嗎
求解 什么意思
0
回復(fù)
stony_s
LV.3
7
2014-02-26 22:27
@candyman
求解什么意思

for(number=0;number<16;number++)

{

du=1;

P0=table[number];

delay(500);

du=0;

}

0
回復(fù)
candyman
LV.2
8
2014-02-26 22:28
@stony_s
for(number=0;number
試過(guò)了 不好使
0
回復(fù)
stony_s
LV.3
9
2014-02-26 22:28
@candyman
試過(guò)了不好使
一直顯示8嗎,前面位選沒(méi)關(guān) we=1; P0=0x00; we=0;
0
回復(fù)
candyman
LV.2
10
2014-02-26 22:29
@stony_s
一直顯示8嗎,前面位選沒(méi)關(guān)we=1;P0=0x00;we=0;
顯示的是亂碼8
0
回復(fù)
matou
LV.3
11
2014-02-26 22:29
掃描太快了吧
0
回復(fù)
daylight
LV.4
12
2014-02-26 22:33
@matou
掃描太快了吧
程序沒(méi)問(wèn)題,好像是郭天祥單片機(jī)的例程吧?仿真看不清,有可能是你的2.6接口不是段選
0
回復(fù)
01夏至
LV.2
13
2014-02-26 22:35
@daylight
程序沒(méi)問(wèn)題,好像是郭天祥單片機(jī)的例程吧?仿真看不清,有可能是你的2.6接口不是段選
有沒(méi)有消影?
0
回復(fù)
matou
LV.3
14
2014-02-26 22:36
@01夏至
有沒(méi)有消影?
樓主的DSN文件能共享下不
0
回復(fù)
candyman
LV.2
15
2014-02-26 22:37
@matou
樓主的DSN文件能共享下不
都是網(wǎng)上下的
0
回復(fù)
matou
LV.3
16
2014-02-26 22:38
@candyman
都是網(wǎng)上下的
有鏈接嗎?
0
回復(fù)
candyman
LV.2
17
2014-02-26 22:40
原因已找到
0
回復(fù)
for_real
LV.3
18
2014-02-26 22:42
@candyman
原因已找到
公布下改好的程序吧
0
回復(fù)
candyman
LV.2
19
2014-02-26 22:43
@for_real
公布下改好的程序吧
把<改成大于
0
回復(fù)
for_real
LV.3
20
2014-02-26 22:43
@candyman
哈哈一語(yǔ)驚醒夢(mèng)中人
0
回復(fù)
soap泡泡
LV.4
21
2014-02-26 22:45
@for_real
哈哈一語(yǔ)驚醒夢(mèng)中人
for(i=x;i<0;i--)
0
回復(fù)
daylight
LV.4
22
2014-02-26 22:45
@soap泡泡
for(i=x;i
for(i=x;i<0;i--)這句話(huà)寫(xiě)錯(cuò)了for(i=x;i>0;i--)不然的話(huà)x你給一個(gè)正數(shù)永遠(yuǎn)不執(zhí)行

 

0
回復(fù)
candyman
LV.2
23
2014-02-26 22:46
@daylight
for(i=x;i0;i--)不然的話(huà)x你給一個(gè)正數(shù)永遠(yuǎn)不執(zhí)行 
0
回復(fù)
candyman
LV.2
24
2014-02-26 22:46
@candyman
顯示的是亂碼8
有辦法解決不?
0
回復(fù)
發(fā)