Reply by ahma...@yahoo.com●March 6, 20082008-03-06
Dear dir
It may be because of different format of else if syntax in CCS for example try
on "elsif" or other formats.
regards
Hi, >
>Could someone please tell me what's wrong with my program ? There are no
error for this program but the switch doesn't work. Here is my program.
Thanks.
>
>#include
>#define GPIOCR (*(volatile unsigned int*)(0x3C))
>#define GPIOCR_ADDR 0x3C
>#define GPIOSR (*(volatile unsigned int*)(0x3D))
>#define GPIOSR_ADDR 0x3D
>
>void delay(void)
>{
>
> long i, j=0;
> for(i=0;i Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD
Video Transcoding Solution for Commercial & Consumer End Equipment:
www.ti.com/dm6467
Reply by daya...@yahoo.com●March 5, 20082008-03-05
Hi,
Could someone please tell me what's wrong with my program ? There are no
error for this program but the switch doesn't work. Here is my program.
Thanks.
}
else if (DSK5416_DIP_get(2) == 1)
{
//================================================================================//DIP
switch 2 is on & motor stop
GPIOSR=0x00;
}
else if (DSK5416_DIP_get(3) == 1)
{
//================================================================================//DIP
switch 3 is on & motor move to the right
Regards,
Dayah
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video
Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467