After all, the LCD works. Here is the code that I use to display "1234":
PAUSE 1000 'wait for LCD start up
LCDPS = %00110001 'Selecting the frame prescale
LCDSE0.0 = 1 'Segment pins
LCDSE0.1 = 1
LCDSE0.2 = 1
LCDSE0.3 = 1
LCDSE0.6 = 1
LCDSE1.3 = 1
LCDSE2.0 = 1
LCDSE2.5 = 1
LCDSE2.6 = 1
LCDSE2.7 = 1
LCDCON = %01000011 'Multiplex,bias,timing, sleep
LCDDATA0 = %01001000 'initial LCD values "1234"
LCDDATA1 = %00001000
LCDDATA2 = %10100000
LCDDATA3 = %00000000
LCDDATA4 = %00001000
LCDDATA5 = %11100000
LCDDATA6 = %00001100
LCDDATA7 = %00000000
LCDDATA8 = %10100000
LCDDATA9 = %01001000
LCDDATA10 = %00000000
LCDDATA11 = %00000000
PIR2.4 = 0 'clearing LCD interrupt flag
LCDCON = %01010011 'enabling bias voltage pins
LCDCON = %11010011 'enabling the LCD module
however, I have problems when trying to run PWM module while using LCD. I will post about it soon.
Bookmarks