问题解决 谢谢上面的两位高手!!!!我还有个问题想请教 要是运行我下面的程序后打开串口能看到仿真结果吗?谢谢 #include <reg51.h> #include <intrins.h> #include <stdio.h> #include <absacc.h> #define uchar unsigned char
main () {uchar code valuecode1[]={ 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3f,0xff,0xf0,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x18,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xbf,0xff,0xdc,0x00,0x01, 0x80,0x00,0x1f,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xbf,0xff,0xbc,0x00,0x01, 0x80,0x00,0x30,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x01,0x7f,0xff,0xb8,0x00,0x01, 0x80,0x00,0x30,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x01,0x7f,0xff,0x78,0x00,0x01, 0x80,0x00,0x19,0xff,0xfe,0xc0,0x00,0x00,0x00,0x00,0x02,0xff,0xff,0x70,0x00,0x01, 0x80,0x00,0x18,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x02,0xff,0xfe,0xf0,0x00,0x01, 0x80,0x00,0x0c,0x01,0xff,0x06,0x00,0x00,0x00,0x00,0x05,0xff,0xfe,0xe0,0x00,0x01, 0x80,0x00,0x0c,0x7f,0xd0,0x20,0x00,0x00,0x00,0x00,0x05,0xff,0xfd,0xe0,0x00,0x01, 0x80,0x00,0x06,0x00,0x0f,0xb0,0x00,0x00,0x00,0x00,0x0b,0xff,0xfd,0xc0,0x00,0x01, 0x80,0x00,0x06,0x03,0xfc,0x10,0x00,0x00,0x00,0x00,0x0b,0xff,0xfb,0xc0,0x00,0x01, 0x80,0x00,0x03,0x1f,0x00,0x18,0x00,0x00,0x00,0x00,0x17,0xff,0xfb,0x80,0x00,0x01, 0x80,0x00,0x03,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x17,0xff,0xf7,0x80,0x00,0x01, 0x80,0x00,0x01,0x80,0x00,0x0c,0x00,0x00,0x00,0x00,0x17,0xff,0xf7,0x00,0x00,0x01, 0x80,0x00,0x01,0x80,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0xff,0xef,0x00,0x00,0x01, 0x80,0x00,0x00,0xc0,0x00,0xf6,0x00,0x00,0x00,0x00,0x06,0x7f,0xee,0x00,0x00,0x01, 0x80,0x00,0x00,0xc0,0x03,0xc2,0x00,0x00,0x00,0x00,0x01,0x9f,0xde,0x00,0x00,0x01, 0x80,0x00,0x00,0x06,0x00,0x3b,0x00,0x00,0x00,0x00,0x00,0x67,0xdf,0x00,0x00,0x01, 0x80,0x00,0x00,0x06,0x00,0xe3,0x00,0x00,0x00,0x00,0x00,0x19,0xbf,0x00,0x00,0x01, 0x80,0x00,0x00,0x30,0x03,0x8e,0x00,0x00,0x00,0x00,0x00,0x06,0x3f,0x00,0x00,0x01, 0x80,0x00,0x00,0x30,0x06,0x3c,0x00,0x00,0x00,0x00,0x00,0x01,0xff,0x00,0x00,0x01, 0x80,0x00,0x00,0x18,0x00,0xf0,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x01, 0x80,0x00,0x00,0x18,0x03,0xc0,0x00,0x00,0x00,0x00,0x00,0x0f,0x7f,0x80,0x00,0x01, 0x80,0x00,0x00,0x0c,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x1f,0xc0,0x00,0x01, 0x80,0x00,0x00,0x0c,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x07,0xe0,0x00,0x01, 0x80,0x00,0x00,0x06,0xf0,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x1f,0xe0,0x00,0x01, 0x80,0x00,0x00,0x07,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0xf8,0x3f,0xc0,0x00,0x01, 0x80,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0xff,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0xfc,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xf0,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xc0,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x80,0x05,0x40,0x88,0x04,0x01,0x08,0x00,0x00,0x0a,0x81,0x10,0x04,0x00,0x20,0x01, 0x80,0x79,0x21,0x08,0x02,0x21,0x49,0x00,0x00,0xf2,0x42,0x10,0x04,0x47,0x10,0x01, 0x80,0x09,0x07,0x7f,0xf7,0xaa,0x00,0x00,0x12,0x0f,0xbe,0x7f,0xe5,0xfe,0x01,0x80, 0x7f,0xf4,0x51,0x08,0x81,0x2c,0x00,0x00,0xff,0xe8,0xa2,0x44,0x47,0x00,0x01,0x80, 0x09,0x04,0x61,0x08,0x81,0x7f,0x00,0x00,0x12,0x08,0xc2,0x7f,0xc5,0x4a,0x01,0x80, 0x0b,0x24,0x51,0x08,0x83,0x81,0x00,0x00,0x16,0x48,0xa2,0x44,0x45,0x6a,0x01,0x80, 0x1d,0x47,0xc9,0x05,0x05,0x01,0x00,0x00,0x3a,0x8f,0x92,0x44,0x47,0x52,0x01,0x80, 0x68,0x84,0x49,0x05,0x05,0x7f,0x00,0x00,0xd1,0x08,0x92,0x7f,0xc5,0x6a,0x01,0x80, 0x09,0x94,0x41,0x02,0x01,0x01,0x00,0x00,0x13,0x28,0x82,0x44,0x05,0x4a,0x01,0x80, 0x0e,0x57,0xc1,0x0d,0x81,0x01,0x00,0x00,0x1c,0xaf,0x82,0x04,0x29,0x42,0x01,0x80, 0x38,0x34,0x4e,0x70,0x71,0x7f,0x00,0x00,0x70,0x68,0x9c,0x03,0x9c,0x7e,0x01,0x80, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80 , 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80 , 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80 , 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80 , 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xff , 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff }; uchar j,n,i,s1; for (j=0;j<32;j++) { for(i=0;i<16;i++) {n=valuecode1[s1++]; printf("%d",n);} } } |