The answer is simple I removed the code that was not relavant, The defines are for the final code. One port is being used as a debug port (portc.6) another port (portc.5) is being used to comm. with the DosOnChip module. I am not using a 232 driver just the resistor method that is why I stated N9600.
The define for the LCD is what the final code will use, I wil only be using one LCD module.
Bookmarks