mdanh2002
Newbie level 4
Hi,
I have the attached source code, used to control a Nokia 3510i LCD, that has been working well with a PIC16F88 and PIC18F4550 for a long time. The code is using bit-banging to simulate SPI to interface with the LCD.
Now I am attempting to migrate it to a PIC24FJ64GA002, and strangely enough, it just doesn't work (the LCD does not respond). Similarly my code for a Nokia 5110 LCD, previously working with PIC16/18, also does not work on this PIC24. I have verified and ensured that the PIC24F is working fine by trying to output square wave onto the pins intended to be used for the LCD interface (CS, RESET, CLK, DATA) and everything works. I have also checked thousands times and nothing seems wrong with the connections or the PIC. This leads me into thinking that the architecture (8-bit) vs 16-bit of the PIC24 may have played a role.
I am testing the code by calling
LCD_Initialize();
LCD_ColorSet(0); //256-color
LCD_Clear(0xFF, 0); //all pixels white in 256-color mode
Any advice is appreciated. Thanks!
I have the attached source code, used to control a Nokia 3510i LCD, that has been working well with a PIC16F88 and PIC18F4550 for a long time. The code is using bit-banging to simulate SPI to interface with the LCD.
Now I am attempting to migrate it to a PIC24FJ64GA002, and strangely enough, it just doesn't work (the LCD does not respond). Similarly my code for a Nokia 5110 LCD, previously working with PIC16/18, also does not work on this PIC24. I have verified and ensured that the PIC24F is working fine by trying to output square wave onto the pins intended to be used for the LCD interface (CS, RESET, CLK, DATA) and everything works. I have also checked thousands times and nothing seems wrong with the connections or the PIC. This leads me into thinking that the architecture (8-bit) vs 16-bit of the PIC24 may have played a role.
I am testing the code by calling
LCD_Initialize();
LCD_ColorSet(0); //256-color
LCD_Clear(0xFF, 0); //all pixels white in 256-color mode
Any advice is appreciated. Thanks!
Attachments
Last edited: