//--------------------------------------------------------- /* 8_bit_character.c Program for writing to Newhaven Display character LCD (c)2008 Curt Lagerstam - Newhaven Display International, LLC. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. */ //--------------------------------------------------------- #include //--------------------------------------------------------- /* #define E P3_4; #define D_I P3_0; #define R_W P3_7; */ volatile xdata at 0xB4 char E; volatile xdata at 0xB0 char D_I; volatile xdata at 0xB7 char R_W; char const text1[] = {"Newhaven Display"}; char const text2[] = {"Character LCD "}; void Delayms(int n){ int i; int j; for (i=0;i