我在Keil输入以下程序,为什么View——serial #1中没有输出Hello World? 5
#include<REG52.H>#include<stdio.h>#ifdefMONITOR51charcodereserve[3]_at_0x23;#endifvoi...
#include <REG52.H>
#include <stdio.h>
#ifdef MONITOR51
char code reserve [3] _at_ 0x23;
#endif
void main (void) {
#ifndef MONITOR51
SCON = 0x50;
TMOD |= 0x20;
TH1 = 221;
TR1 = 1;
TI = 1;
#endif
while (1)
{
P1 ^= 0x01;
printf ("Hello World\n");
}
} 展开
#include <stdio.h>
#ifdef MONITOR51
char code reserve [3] _at_ 0x23;
#endif
void main (void) {
#ifndef MONITOR51
SCON = 0x50;
TMOD |= 0x20;
TH1 = 221;
TR1 = 1;
TI = 1;
#endif
while (1)
{
P1 ^= 0x01;
printf ("Hello World\n");
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询