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.

TMS320F28027的IO口读的问题

Other Parts Discussed in Thread: TMS320F28027, TMS320F2802

从TMS320F2802移植到TMS320F28027上的一句代码:

     TestPin =   GpioDataRegs.GPBDAT.bit.GPIO32*4 + GpioDataRegs.GPADAT.bit.GPIO7*2 + GpioDataRegs.GPADAT.bit.GPIO6;

整个程序中上述代码会出现两次,但 第一次的时候,TestPin读数为0(实际为7) ,第二次读到7。  但是在2802上该代码每次都能都到7。

不知道是什么原因?