MrDEB
Well-Known Member
wondering if its in the code is the problem?
using a hd44780 but no display.
The backlight lights up, screen seems to flicker.
Adjusted the pot but no display
any suggestions?
need to locate schematic if needed? basic 4 data lines connections.
Tried changing the C6 C5 to C5 C6
using a hd44780 but no display.
The backlight lights up, screen seems to flicker.
Adjusted the pot but no display
any suggestions?
Code:
Device = 18F2420
Clock = 20 //
//Config OSC = INTIO2
// some LCD options...
#option LCD_DATA = PORTB.0 // Assign the LCD connections
#option LCD_EN = PORTC.6 //
#option LCD_RS = PORTC.5 //
// import LCD library...
//Include "InternalOscillator.bas "
Include "LCD.bas"
Include "convert.bas"
Dim Variable As Word
// Start Of Program...
DelayMS(550) // Let the LCD warm up
LCD.Cls // Clear the LCD screen
LCD.WriteAt(1,1,"Hello World")
// Send some text to the LCD
Variable = 0 // Clear the "Variable" register
While True
Inc(Variable) // Increment the "Var1" register
// Convert to a string,
// and always display 5 characters
LCD.WriteAt(2,1,Convert.DecToStr(Variable,5))
DelayMS(1000) // Delay for 1 second
Wend
Tried changing the C6 C5 to C5 C6