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中的A[13:0]引脚配置为gpio的问题



请问老师,我想将5509a的A0-A13引脚配置为gpio,下面是我的一个用于让LED灯闪烁的程序,不过不知道为什么这些引脚上输出的一直都是低电平,我是菜鸟,刚开始学dsp,还望老师指点:

#include <csl.h>
#include <csl_pll.h>
#include <csl_chip.h>
#include <csl_gpio.h>

void delay();
/*锁相环的设置*/
PLL_Config myConfig = {
0,     //IAI: the PLL locks using the same process that was underway
            //before the idle mode was entered
1,    //IOB: If the PLL indicates a break in the phase lock,
           //it switches to its bypass mode and restarts the PLL phase-locking
             //sequence
24,   //PLL multiply value; multiply 24 times
1        //Divide by 2 PLL divide value; it can be either PLL divide value
       //(when PLL is enabled), or Bypass-mode divide value
          //(PLL in bypass mode, if PLL multiply value is set to 1)
};

main()
{
Uint16 i = 0;
/*初始化CSL库*/
CSL_init();

/*设置系统的运行速度为144MHz*/
PLL_config(&myConfig);

/*确定方向为输出*/
GPIO_RSET(IODIR,0xFF);
GPIO_RSET(IODATA,0x00);

*(ioport volatile unsigned int *)0x6c00=0x0011;
GPIO_RSET(AGPIOEN,0xffff);
GPIO_RSET(AGPIODIR,0xffff);

/*循环闪烁*/
for(;;)
{
GPIO_RSET(AGPIODATA,0x0000);
delay();
delay();
GPIO_RSET(AGPIODATA,0xffff);
delay();
delay();
}
}
void delay()
{
Uint32 j = 0,k = 0;
for(j = 0;j<0x0c;j++)
{
for(k= 0;k<0xffff;k++)
{}
}
}
/*****************************************************************************
End of gpio.c
******************************************************************************/