为何 修改里面的汉字代码 他就不跑了 跪求
只显示里面的一个字为什么不往下跑,
哪位大神讲解一下,
我在网咖做了快2个小时了。
人家都说我是网咖里面的一股清流代码如下;
#include <reg51.h>
#include <intrins.h>
#define uchar unsigned char
#define uint unsigned int
sbit Serial_Data_Pin = P0^0;
sbit Shift_CLK_Pin = P3^7;
sbit RCK_Pin = P0^1;
sbit Switch_74ls154 = P3^6;
uchar data Bit_Stream_8[32];
uchar code Word_Set_OF_16x16[][32]=
{ /*---------------80----------------*/
{ 0x02,0x00,0x02,0x00,0x02,0x10,0x7F,0xF8,0x42,0x10,0x42,0x10,0x7F,0xF0,0x42,0x10,
0x42,0x10,0x7F,0xF0,0x42,0x10,0x02,0x00,0x02,0x04,0x02,0x04,0x01,0xFC,0x00,0x00 },
{ 0x00,0x00,0x3F,0xF0,0x00,0x10,0x00,0x20,0x00,0x40,0x01,0x80,0x01,0x04,0xFF,0xFE,
0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x05,0x00,0x02,0x00},
};
void Delay( uint t)
{
uchar i;
while ( t-- ) for ( i= 0;i<180 ;i++);
}
void Serial_Input_Pin( uchar Abyte )
{
uchar i;
for (i = 0; i < 2; i++ )
{
Abyte <<= 1; Serial_Data_Pin = CY;
Shift_CLK_Pin = 1;
_nop_();_nop_();
Shift_CLK_Pin = 0;
}
}
void T0_Led_Display_Control() interrupt 1
{
uchar i;
TH0 = -1000 / 256;
TL0 = -1000 % 256;
i = ( P2 + 1) & 0x0f;
Serial_Input_Pin( Bit_Stream_8[i * 2 + 1]);
Serial_Input_Pin( Bit_Stream_8[i * 2 ]);
Switch_74ls154 = 1;
RCK_Pin = 1;
RCK_Pin = 0;
P2 = i;
}
void main()
{
uchar i,k;
TMOD = 0x01;
TH0 = -1000/256;
TL0 = -1000%256;
IE = 0x82;
P2 = 0xFF;
while(1)
{
for( k = 0; k < 12 ; k++)
{
for( i = 0; k< 32 ; i++)
Bit_Stream_8
= Word_Set_OF_16x16;
TR0 = 1;
Delay(1000);
TR0 = 0;
P2 = 0xFF;
}
}
}
图片如下。
-
-
-
16x16.rar
下载积分: 积分 -1 分
17.56 KB, 下载次数: 24, 下载积分: 积分 -1 分
一周热门 更多>