Page 2 of 3

Re: PR 11 Temperature Control System..

PostPosted: Thu Dec 20, 2012 2:41 pm
by zhenning
Is your clock settings correct? Is your delay function provide the right delays?

Re: PR 11 Temperature Control System..

PostPosted: Thu Dec 20, 2012 11:12 pm
by Tianjin
zhenning WROTE:Is your clock settings correct? Is your delay function provide the right delays?

1.I don't touch the delay function given by cytron.

Hey, thank you very much. I starts reading ,there was a problem on initializing the LCD.
Those who have experience on LCD has to prepare another tutorial on c compiler, most tutorials are on Hitech.
for more clarity on lcd initialization, i'll come back.

Re: PR 11 Temperature Control System..

PostPosted: Fri Dec 21, 2012 7:57 am
by robosang
Hi Tech is C compiler

Re: PR 11 Temperature Control System..

PostPosted: Fri Dec 21, 2012 6:31 pm
by Tianjin
robosang WROTE:Hi Tech is C compiler

Hi thank you.
Look, when I send char('T') , the LCD display char"V".. this thing happens for alomost more letters. tell me why is this happening? am waiting ur replay.

Re: PR 11 Temperature Control System..

PostPosted: Fri Dec 21, 2012 6:41 pm
by zhenning
Please post some photos.

Re: PR 11 Temperature Control System..

PostPosted: Sat Dec 22, 2012 12:49 am
by Tianjin
my lcd 16x2 works but when i want to display like
TEMP A=22.3 it displays like this VGOR?22.3
T is changed to V
E is changed to G
M is changed to O
P is changed to R etc
so why is the lcd changing character TEMP A= into VGOR?

Re: PR 11 Temperature Control System..

PostPosted: Sat Dec 22, 2012 8:02 am
by shahrul
Tianjin WROTE:my lcd 16x2 works but when i want to display like
TEMP A=22.3 it displays like this VGOR?22.3
T is changed to V
E is changed to G
M is changed to O
P is changed to R etc
so why is the lcd changing character TEMP A= into VGOR?

You use same coding with sample PR11?
If yes, maybe you are wrong wiring D0-D7 of the LCD.

Re: PR 11 Temperature Control System..

PostPosted: Sat Dec 22, 2012 4:23 pm
by robosang
Agreed with Shahrul, if the coding is same, should be the wiring. Photo of the hardware.

Re: PR 11 Temperature Control System..

PostPosted: Sat Dec 22, 2012 6:36 pm
by Tianjin
I am sure of the connection, the numbers are displayed well. the problem is on the characters.
instead of displaying TEMP A= value, it displays VGOR?value, as u look at the photo.
for the program,am using PR11 and I touched only
ADCON1 = 0b00011110;
ADCON2 = 0b10010100;
and i ignore CHANNEL1 SINCE I HAVE ONLY ONE LM35.
My device is p18f4520.

Re: PR 11 Temperature Control System..

PostPosted: Sat Dec 22, 2012 10:32 pm
by robosang
Can you clarify, which pin from PIC is connected to LCD? PORTD? From the wiring, it does not seem to be PORTD.

I am pretty sure there is problem at DB1 of LCD data port.