본문 바로가기
dev, tech/embedded

led

by 구띵 2006. 6. 2.
#define GPGCON *(unsigned int *)0x56000060
#define GPGDAT *(unsigned int *)0x56000064
void Main()
{
 int i;
  GPGCON = 0x50;
  while(1){ 
    GPGDAT |= 0x4;
   for(i = 0; i < 3000000; i++)
     ;
   GPGDAT &= ~(0x4);
   GPGDAT |= 0x8;
   for(i = 0; i < 3000000; i++)
     ;
   GPGDAT &= ~(0x8);
 
 }
}

댓글