hi tt,
I'm sorry I dont use 'C' programming at all.
i see .....
well, thanks for the advice ...
i will keep on figure out the problem....
By the way...
if PIC has any problem, it wont be able to programmed, right?
Last edited:
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
hi tt,
I'm sorry I dont use 'C' programming at all.
i see .....
By the way...
if PIC has any problem, it wont be able to programmed, right?
You should be able to read/verify the program within the PIC, why do think it may have a problem.?
BTW: other members are quite upto speed with 'C', they may suggest idea's.
I was building a simple wattmeter using the schematic as shown here
And the ASM code for PIC16F88 here to drive the JHD162A LCD as well.
(The code is on 4 bits HD44780, but is compatible with KS0066 driver used here.)
However after I'd built the circuit, I found that LCD shows nothing.
And I wonder if I had done something wrong on my code or what, or maybe thay said I need some kind of driver "wake-up" for the LCD module?
Thanks if you can help.
Hi,
I try debug your code in MPLAB IDE+ Proteus it function ok.
When you first power on, you must to see dark block display on LCD, if you can see then wiring PIC<->LCD not correct,if not:
If you follow schematic then just turn pot R1 to 0V then power on again if you still not see block, I think it not enough power for LCD
If you build by PCB supply by **broken link removed** ,the VO pin tire direct to DC+ ,I don't think you would see anything if VO=DC+, try reconnect VO to 0V via resistor (0 to 10K) if you want ligh or dark
Good luck
What is the differences between Vdd and Vss anyway?
hi tt,
Downloaded your *.rar,,, very slow download for 8.6Mb.
I'll try your asm etc...
EDIT:
Looked thru the source code.
There is no point in working on a complete program if one part of the hardware is not working.
Look at this short LCD diagnostic code.
It was derived within Oshonsoft and it does work in simulation, I dont have a 16F88 on the shelf.
In the code are the PORTB pin assignments for the LCD, almost the same as yours.
As you are working on a project board it should be a simple matter to re configure the LCD pins on your project board,
DONT change the program to suit your existing wiring.
If the LCD does not work with this simple program I would suggest trying a new LCD.
Lets know what you find.
BTW: what are you setting the INTOSC freq too.?
; 13: Define LCD_LINES = 2
; 14: Define LCD_CHARS = 16
; 15:
; 16: Define LCD_BITS = 4
; 17: Define LCD_DREG = PORTB
; 18: Define LCD_DBIT = 0 'low nibble PORTB for 4 data lines
; 19: 'portb,0 = D0
; 20: 'portb,1 = D1
; 21: 'portb,2 = D2
; 22: 'portb,3 = D3
How about R/W, RS and E line?
RB0 have to go to lcd pin 11
rb1 to 12
and so on
; 12:
; 13: Define LCD_LINES = 2
; 14: Define LCD_CHARS = 16
; 15:
; 16: Define LCD_BITS = 4
; 17: Define LCD_DREG = PORTB
; 18: Define LCD_DBIT = 0 'low nibble PORTB for 4 data lines
[COLOR="Red"][B]; 19: 'portb,0 = D0
; 20: 'portb,1 = D1
; 21: 'portb,2 = D2
; 22: 'portb,3 = D3[/B][/COLOR]
; 23:
[COLOR="Red"][B]; 24: Define LCD_RSREG = PORTB
; 25: Define LCD_RSBIT = 5
; 26:
; 27: Define LCD_EREG = PORTB
; 28: Define LCD_EBIT = 4[/B][/COLOR]
; 29:
; 30:
; 19: 'portb,0 = D0
; 20: 'portb,1 = D1
; 21: 'portb,2 = D2
; 22: 'portb,3 = D3
hi tt
Your dwg wiring is not the same as my code.!
Also did you see my edit ref the OSCCON line,
Code:; 19: 'portb,0 = D0 ; 20: 'portb,1 = D1 ; 21: 'portb,2 = D2 ; 22: 'portb,3 = D3
Where and how is the Contrast pot connected to the LCD.?
OK..so I might connect it wrongly here .... Mind to give me advice?
OSCCON line? You mean the one posted as lcd88c.asm?
The contrast pot i can see (with backlight ON) is juz the second line with black square ....
the connection of the pot is as shown at the schematic above.
hi,
Its the lcd88c.asm .
If the pot is connected as shown, how will it change the contrast.?
I'll post a dwg.
Where are you located.?
Well.... the contrast is good where it turns black and fade out in another round ...
I stay at Malaysia ...
Hi,
Edited your dwg also attached lcd88d.asm
OK.?