This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

5509A 如何将C7引脚配置成GPIO并使用它?



如题,

根据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);

.......

请问这样配置有什么问题吗?为什么调试不成功?