Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] GLCD(128*64) Output Error

Status
Not open for further replies.

KhaledOsmani

Full Member level 6
Joined
May 4, 2014
Messages
384
Helped
1
Reputation
2
Reaction score
1
Trophy points
18
Activity points
3,933
Hello,

I`m using the PIC18 Simulator IDE as a compiler.
I've wrote the following code:

Code:
Define GLCD_DREG = PORTB
Define GLCD_RSREG = PORTD
Define GLCD_RSBIT = 2
Define GLCD_EREG = PORTD
Define GLCD_EBIT = 3
Define GLCD_RWREG = PORTD
Define GLCD_RWBIT = 4
Define GLCD_CS1REG = PORTD
Define GLCD_CS1BIT = 0
Define GLCD_CS2REG = PORTD
Define GLCD_CS2BIT = 1

WaitMs 20
GLcdinit

Dim i As Word
Dim j As Word


main:
	GLcdposition 1, 0

For i = 15 To 112

	GLcdpset i, 15

Next i

		GLcdposition 3, 0

For i = 15 To 112

	GLcdpset i, 30

Next i

	'GLcdposition 0, 0
		For j = 5 To 45
		GLcdpset 40, j
	Next j
	
		For j = 5 To 45
		GLcdpset 85, j
	Next j

The output is attached as a JPEG photo format.
Problem: discontinuities in the vertical lines.
Why there are such discontinuities, any code error? how to obtain continuing vertical lines (axis)?

LCD.jpg
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top