hey guys,
I want to initialize the CFAH2004ATMIJP with a msp430.
Between both are two 74hct245(one for D7...D0, other for RS, R/-W, EN) as levelshifter from 3V3 to 5V.
I try to initialize by this routine:
LCD_EN_LOW;
LCD_RS_LOW;
LCD_RD_WRITE;
LCD_EN_ACTIV;
LCD_RS_ACTIV;
LCD_RD_ACTIV;
LCD_DATA_ACTIV;
delay(100);
LCD_DATA = 0x30;
delay(5);
LCD_DATA = 0x30;
delay(1);
LCD_DATA = 0x30;
delay(1);
LCD_DATA = 0x38;
delay(1);
LCD_DATA = 0x08;
delay(1);
LCD_DATA = 0x06;
delay(1);
LCD_DATA = 0x0c;
delay(1);
LCD_DATA = 0x01;
the delays are in ms.
but I always have the the 2 bars(first and third row) like an uninitialized display.
I want to initialize the CFAH2004ATMIJP with a msp430.
Between both are two 74hct245(one for D7...D0, other for RS, R/-W, EN) as levelshifter from 3V3 to 5V.
I try to initialize by this routine:
LCD_EN_LOW;
LCD_RS_LOW;
LCD_RD_WRITE;
LCD_EN_ACTIV;
LCD_RS_ACTIV;
LCD_RD_ACTIV;
LCD_DATA_ACTIV;
delay(100);
LCD_DATA = 0x30;
delay(5);
LCD_DATA = 0x30;
delay(1);
LCD_DATA = 0x30;
delay(1);
LCD_DATA = 0x38;
delay(1);
LCD_DATA = 0x08;
delay(1);
LCD_DATA = 0x06;
delay(1);
LCD_DATA = 0x0c;
delay(1);
LCD_DATA = 0x01;
the delays are in ms.
but I always have the the 2 bars(first and third row) like an uninitialized display.
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.