初次使用dsp系列单片机我遇到一下问题:开发环境ccs5.2,win7 64bit seedxds560plus仿真器:
1,关于dsp csl库的处理与调用问题,库里面包括cslDM642.lib与cslDM642e.lib,不知道这里面有什么区别,我再网上查到这两个库封装不同,具体在哪里设置?
2,我按照英文版库使用手册试着写了gpio控制部分但是仿真实验没有效果,不知道哪里有问题!下面请看我的截图
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.
void main(void) {
unsigned char i,j;
CSL_init();
GPIO_Handle hGpio;
GPIO_Config config;
hGpio = GPIO_open(0x0000FFFF,GPIO_OPEN_RESET);
config.gpen = 0x0000FFFF; //gpen
config.gpdir = 0x0000FFFF; //gdir
config.gpval = 0x0000FFFF; //gpval
config.gpgc = 0x00000016;
GPIO_config(hGpio,&config);
j=253;
asm(" NOP ");
for(i=0;i<253;i++)
{
asm(" NOP ");
GPIO_pinWrite(hGpio,0x0000FFFF,1);
printf("Hello World!\n");
GPIO_pinWrite(hGpio,0x0000FFFF,0);
asm(" NOP ");
j--;
}
asm(" NOP ");
asm(" NOP ");
asm(" NOP ");
}
刚刚看了下内存中关于gpio寄存器的值好像没有变,主函数我是这样写的,是不是哪里不对,请帮我看下,谢谢