this is a program which is to change the clectirc level of the pin 13 of GPIO ;
no error was reported .from the CCS.but the clectirc level of the pin 13 of GPIO cannont be changed. i have
tried many methods but cannot work. You can write a program to achieve the same function .I wii be very thankful .
#include <c6x.h>
void delay(unsigned int i)
{
while(i--);
}
void main()
{
*(unsigned int *)0x01B00000 |=1<<13;//使能G PIO 13
*(unsigned int *)0x01B00004|=1<<13;// 设定GPIO13 为输出
while(1)
{
*(unsigned int *)0x01B00008 &=~(1<<13);//输出低电平
delay(0xffff);
// *(unsigned int *)0x01B00008|=1<<13;//输出高电平
// delay(0xffff);
}
}