We have a character LCD (www.cloverlcd.com/pdf/S6A0069.pdf) that we got to work in 8 bit mode. However, now we are trying to get it to work in 4 bit mode but it doesn't seem to be displaying anything. I think the function set instruction isn't been written. Can somebody please check if I am approaching this the right way? I'll post my 8 bit code (which is working) and my 4 bit code (which I'm trying to get to work)
//8 bit working COMPortC(0x3C); //function set Delay1KTCYx(10); COMPortC(0x0F); //Turn on display and configure cursor settings Delay1KTCYx(10); COMPortC(0x01); //clear display Delay1KTCYx(10); COMPortC(0x06); //increment mode and increment direction (entry mode set) Delay1KTCYx(10); COMPortC(0x02); //Return Home //4 bit COMPortC(0x20); //function set Delay1KTCYx(10); COMPortC(0x20); //function set Delay1KTCYx(10); COMPortC(0x80); //function set Delay1KTCYx(10); COMPortC(0x00); //Turn on display and configure cursor settings Delay1KTCYx(10); COMPortC(0xF0); //Turn on display and configure cursor settings Delay1KTCYx(10);