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:
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)?
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)?