Post a list of the connections that you have between the LCD pins
and the PIC pins.
martines Guest
hi
Posted: Thu Jul 06, 2006 12:31 pm
i'm using the pin config from the flex_lcd.c driver
LCD_DB4 PIN_D0
LCD_DB5 PIN_D1
LCD_DB6 PIN_D2
LCD_DB7 PIN_D3
LCD_E PIN_A1
LCD_RS PIN_A3
LCD_RW PIN_A2
at first it didnt work ,what i did was to change the delay time in init_lcd()
from 15 to 30ms and it started; the strange thing is that the initial message "Ready..." appears ok ; but if i try to change even a letter(for example"ready..") and the screen is coming back to black line
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Thu Jul 06, 2006 1:34 pm
Things to try:
1. Increase the initial delay to a much larger value, such as 50 ms.
2. Check the +5v power supply. Make sure it stays at a constant +5v.
3. If those two things don't help, then configure the LCD and driver
for Write-only mode. Instructions:
A. Break the connection between the LCD_RW pin and pin A2 on
the PIC.
B. Connect the LCD_RW pin to ground.
C. Don't connect anything to pin A2 on the PIC.
D. In the Flex_lcd.c driver, comment out #define statement for
USE_RW_PIN. Example:
Code:
// #define USE_RW_PIN 1
E. Re-compile the program.
F. Re-program the PIC and test it.
martines Guest
:)
Posted: Thu Jul 06, 2006 3:04 pm
@PCM programmer
10000000 thanks, your the best.
Just the 50ms change did the job
So to save time and labour to everybody else using jm162 lcd (samsung)
the PCM programmer's flex_lcd.c driver is working perfect with minor change in the init part where 15ms should be 50ms.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum