void setup()
{

  volatile char *dirf,*dirk;
  volatile char *outf,*outk; 

  dirf=0x30;
  dirk=0x107;
  outf=0x31;
  outk=0x108;
  
//declare first two pins of PORTF and PORTK as output ports.
  *dirf=0x03;
  *dirk=0x03;

  while(1)
  {
    *outf=0x02;
    *outk=0x02;

    delay(500);

    *outf=0x02;
    *outk=0x01;

    delay(500);

    *outf=0x01;
    *outk=0x01;

    delay(500);

    *outf=0x01;
    *outk=0x02;

    delay(500);


  }
  

}