/* * Excimer board demo program running on DINK32 software. * This code is from the excimer Lab experiment 4 * It will flash the Status and Error LED's alternatively. * the "dl -k" command, then execute the demo program with the * "go 90000" command. * * The LEDs will blink 10 times and then stop. * The delay loop will cause a visible delay in a 300MHz PowerPC * * Modification history: * 19Jan00,MLO Created. * 27Mar00,MRR */ main() { unsigned long count; int loop; for(loop = 0; loop <= 10; loop++) { *(char *) (0x40200000) = 0x00; //turn on status *(char *) (0x40600000) = 0x08; //turn off error for(count = 0; count <=0xfffff; count ++); // delay *(char *) (0x40200000) = 0x08; //turn off status *(char *) (0x40600000) = 0x00; //turn on error for(count = 0; count <=0xfffff; count ++); // delay } *(char *) (0x40600000) = 0x08; // turn off error }