变量定义的位置不能在里面,要放到main之外。我编译通过:
#include <mega103.h>
// Declare your global variables here
unsigned char led_test @0x5004;//
void main(void)
{
// Declare your local variables here
// Input/Output Ports initialization
// Port A
MCUCR=0x80;//在初始化部分代码,使能外部RAM访问
led_test=0xf0;
}
发表时间:2001年8月17日15:41:00