Discussion in "Project Doubts" started by    pratikshinde    Jul 19, 2012.
Sat Jul 21 2012, 03:52 pm
#11
Hello Curiou_Som,

I have provided pull ups,
I found a strange thing now,
sbit EN=P0^2;
sbit L=P1^0;
//in main
while(1)
	{
		//WriteCharLCD('a');
		L=0;EN=0;
		delayms(1000);
		//WriteCharLCD('b');
		L=1;EN=1;
		delayms(1000);
	}


Now the LED connected to port1^0(L) is blinking, but port0^2(EN) is not blinking.
while burning hex file both LEDs are ON,
what would be the problem?


UPDATE:
When I connect LED to P0^2 directly without connecting to PULLUP LED is blinking however brightness is low.


[ Edited Sat Jul 21 2012, 03:56 pm ]
Sat Jul 21 2012, 04:01 pm
#12
@ pratikshinde
add a while(1) loop in the Curiou_Som code
Curiou_Som simulation is working
u can download Proteus v 7.8 sp2 from here
http://www.4shared.com/rar/N-JFGnMj/proteus_78_sp2.html
be sure the pull up resistor should be less than or equal to 10k
once i use 12 k and lcd not work
Tags Proteus 7.8 Sp2proteus downloadproteus simulator downloadproteus pspice simulator download
Sat Jul 21 2012, 04:05 pm
#13
Hello Majoka,

PULLUP value is 4.7K, I am using resistor network.
Thank you for sharing link.

http://www.4shared.com/photo/7x_Lf_uz/2012-07-21_16-08-52_80.html?refurl=d1url


[ Edited Sat Jul 21 2012, 04:15 pm ]
Sat Jul 21 2012, 05:08 pm
#14
Hello,

When I connect LED to P0^2 directly without connecting to PULLUP LED is blinking however brightness is low.



I have connected PULLUP resistor network in wrong direction, this problem is solved but still no success on lcd.
I tried Curiou_Som's code, however it is giving me too much delay.(for 1000ms its giving 6-7 sec)

Thanks


[ Edited Sat Jul 21 2012, 05:31 pm ]
Sat Jul 21 2012, 05:16 pm
#15
@pratikshinde

The code is fine with me,just now i built the circuit(you posted) on a breadboard and burned the hex in it ,
and the LCD displayed .
I am posting the picture of it.

The only difference from your circuit is i used AT89S52 in place of AT89S51,other then that every thing is same.

One more thing , did you grounded the D0-D3 pins of the LCD ?
If not ,then ground them and try again.

Sat Jul 21 2012, 06:26 pm
#16
Hello,

If I burn your code I get following
http://www.4shared.com/photo/YEACBvY-/2012-07-21_18-22-00_768.html?refurl=d1url

I did not ground the pins, I will try and let you know.
however I read in few posts not to ground these pins.

Thanks


[ Edited Sat Jul 21 2012, 06:32 pm ]
Mon Jul 23 2012, 12:58 pm
#17
Hello,

I have grounded D0-D3 pins, and burned the code given by Curiou_Som,
Sometimes I got "32" and some times "ab" on display.

Thanks
Wed Jul 25 2012, 12:50 am
#18

I have connected PULLUP resistor network in wrong direction


i was also thinking that this can be the last one possibility
from above discussion still the problem is with hardware not with software
so concentrate on hardware part only
mention ur connection with lcd to port of controller then may be get some idea
the above board in the link
are u made it yourself or it is evolution board read made
if it is experiment board then it can has many jumper and u need proper setting of jumpers to connect with port 0
but it is my doubt only not a solution
Wed Jul 25 2012, 10:47 am
#19

mention ur connection with lcd to port of controller then may be get some idea
the above board in the link
are u made it yourself or it is evolution board read made


I have made this schematic, LCD is directy connected to PORT0,

Now I am getting text on LCD by burning code of Curiou_Som,
but if I compile same code in Keil its not working ,

Thanks
Thu Jul 26 2012, 11:29 am
#20
@ pratikshinde
i think there is some problem with keil
is keil generate any error message ?

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am