Hi everyone! I am an Electronics student and I am doing a project about a PIC 16F877 Learning Board which features: *LCD 2x16 *4x4 Keyboard *SPI Serial EEPROM *ADC (Inputs from a thermistor and variable resistor) *PWM *USART RS-232 I have built the board and I wrote the minimal code to test that its functioning properly. Now I have to write good commented code in routines. I was thinking to write for each section its required routines in different files (as include .inc) so the user will load them as needed, I am not sure but I feel something that it might not work in the way I want to, because if I include the file at the beginning of the code it will be compiled as well at the top and will be executed?, can I put it at the end? but what about the initialisation of each part. Please give your comments how do you feel is the best way to create/arrange the code for the above board. Thanks in advance, Haris Volos -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads