如题,
根据Data Sheet中的介绍,若想使用C7引脚作为GPIO使用的话,需要将External Bus Selection Register 上的 Parallel Port Mode bit 配置为10.按照这个要求,我写了一下这段代码:
......
#define EBSR (*(volatile unsgined short*)0x6C00)) //External Bus Selection Register的地址
......
EBSR=0x02 //将该16位寄存器的前两位设置为10
GPIO_FSET(GPIOEN,IO11,1); //C7作为GPIO后,为GPIO11
GPIO_FSET(GPIODIR,IO11DIR,1);
.......
请问这样配置有什么问题吗?为什么调试不成功?