// PIC18 in C - Versione 0.2 - December 2014 // Copyright (c) 2014, Vincenzo Villa // Creative Commons | Attribuzione-Condividi allo stesso modo 3.0 Unported. // Creative Commons | Attribution-Share Alike 3.0 Unported // https://www.vincenzov.net/tutorial/PIC18/hellorealworld.htm // Reference // PIC18F2431 data sheet - PORTC, TRISC and LATC Registers - Page 119 -> // PIC18F14K50 data sheet - PORTC, TRISC and LATC Registers - Page 90 (92) -> // PIC18F25K20 data sheet - PORTC, TRISC and LATC Registers - Page 127 -> #include "configurationsbits.h" void main(void) { TRISCbits.RC0 = 0; // Set RC0 pin as Output - See data sheet! LATCbits.LATC0 = 1; // Turn on RC0 pin - See data sheet! while (1); // Do nothing, forever }