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.

CCS5.5上利用C5509A的McBsp实现Uart,ioport访问出错



如题,在ccs5.5平台上,用ioport关键字定义McBsp的PCR寄存器

ioport Uint16 * PCR=0x2C12

#define REG_PCR1 (*PCR)

将MCBSP的各个引脚配置为通用IO口,简单的通过一个定时器控制Dx的电平,发现仅当设置PCR的DX域的值时,程序跑不了几轮就飞了,但是当把这段代码注释掉之后,程序能正常运行。

代码在公司,明天再贴出来,使用XDS100V2仿真器和SEED-XDS506V2都是一样的结果,这是为何?