[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
Visit site
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)?

 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…