Content originally posted in LPCWare by pindonga123 on Mon Nov 04 10:53:32 MST 2013
Hello. I cant initialize the LCD. I do the next but it dont work, where am I wrong?. Im using the 8 bits data bus
Delay (40); Wait 40 msec
LPC_GPIO2->FIOPIN= clear; Put 0 in pin E
Delay (1); Wait 1 msec
LPC_GPIO2->FIOPIN =funcion_set; Write Function_Set Values
LPC_GPIO2->FIOPIN= enable; Put 1 in pin E
Delay (1); Wait 1 msec
LPC_GPIO2->FIOPIN= clear; Put 0 in pin E
Delay (1); Wait 1msec
LPC_GPIO2->FIOPIN = on_off_control; Write Display ON/OFF Control
LPC_GPIO2->FIOPIN= enable; Put 0 in pin E
Delay (1); Wait 1 msec
LPC_GPIO2->FIOPIN= clear;
Delay (1);
LPC_GPIO2->FIOPIN = display_clear;
LPC_GPIO2->FIOPIN= enable;
Delay (2);
LPC_GPIO2->FIOPIN= clear;
LPC_GPIO2->FIOPIN = entry_mode_set;
LPC_GPIO2->FIOPIN= enable;
Delay (1);