/* ********************************************************************** * File Hello_uk.C - Rel. 1.1 con Hi-TECH PICC 9.50PL1 * * GRIFO(R) via Dell'Artigiano 8/6 40016 S. Giorgio di Piano (BO) * * Hardware: GMM 876 * * Tel. +39 051 892052 Fax. +39 051 893661 * * http://www.grifo.com http://www.grifo.it * * by Graziano Gaiba 01.02.06 * ********************************************************************** 01/02/06: Hello_it.C - Rel 1.1 - By Graziano Gaiba Program preloaded im mini modules. Makes the on-board LED blink. */ /****************** Header, costanti, strutture dati, etc. *****************/ #include /* Unprotect memory, set HS quartz and disable the watchdog timer */ __CONFIG(UNPROTECT & WDTDIS & HS); /************************* Procedures and functions ************************/ void delay(void) { unsigned int msec, rit; for(msec=5; msec; msec--) for(rit=1; rit; rit++) ; } /******************************* Main program ******************************/ void main(void) { // Set as output LED control signal TRISB4=0; for(;;) { RB4=0; // Turn on LED delay(); // Pause RB4=1; // Turn off LED delay(); // Pause } }