// PIC18 in C - Versione 0.3 - Dicembre 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) { TRISC = 0; // Set all PORTC pin as Output - See data sheet! LATC = 0xFF; // 0b11111111 - Turn on all PORTC pin - See data sheet! while (1); // Do nothing, forever }