pankajhyd
Joined: 19 Aug 2010 Posts: 1
|
8bit lcd with different i/o pins |
Posted: Thu Aug 19, 2010 7:01 am |
|
|
hi frnds,
I have a hardware which has 8 different i/o's (not in order) connected to LCD with rs and enable pins also in different order. Does anybody have the driver with these conditions? Not able to change the following lines of code in flex_lcd code. Please help me to solve the probs.
void lcd_send_nibble(int8 nibble)
{
// Note: !! converts an integer expression
// to a boolean (1 or 0).
output_bit(LCD_DB4, !!(nibble & 1));
output_bit(LCD_DB5, !!(nibble & 2));
output_bit(LCD_DB6, !!(nibble & 4));
output_bit(LCD_DB7, !!(nibble & 8));
delay_cycles(1);
output_high(LCD_E);
delay_us(2);
output_low(LCD_E);
} _________________ hi |
|