Discussion in "Project Doubts" started by    pratikshinde    Jul 19, 2012.
Sat Jul 21 2012, 10:22 AM
#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, 10:26 AM ]
Sat Jul 21 2012, 10:31 AM
#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, 10:35 AM
#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, 10:45 AM ]
Sat Jul 21 2012, 11:38 AM
#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, 12:01 PM ]
Sat Jul 21 2012, 11:46 AM
#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, 12:56 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, 01:02 PM ]
Mon Jul 23 2012, 07:28 AM
#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
Tue Jul 24 2012, 07:20 PM
#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, 05:17 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, 05:59 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

Conversation

Sun Oct 13 2019, 02:02 AM
Aline Hutchinson
Hey there,
ExperimenterUK
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
Nathaniel
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
ExperimenterUK
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html

Downloads

Comments

ilylily07
Tue Oct 15 2019, 04:32 PM
hientran123
Tue Oct 15 2019, 02:27 AM
Sat Oct 05 2019, 02:38 PM
zexalo
Thu Oct 03 2019, 09:53 AM
thanhle12345
Thu Oct 03 2019, 07:37 AM
ramon_vsc
Fri Sep 20 2019, 04:53 PM
youssoufba
Thu Sep 19 2019, 11:57 AM
Taiphan000
Tue Sep 17 2019, 04:21 AM

Online

Guests: 42, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38097
Newest member: ilylily07
Forum Activity
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:09 PM
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:02 PM
sir, when i on display ,sometime 3rd display is no...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 02:53 PM
sir, when i on display ,sometime 3rd display is no...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:13 PM
please find video attachment. 3rd & 4th displa...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:05 PM
sir, 3rd and 4th dot matrix display flickering, ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Oct 18 2019, 09:18 PM
Hopefully you understand some of the program.Which...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Thu Oct 17 2019, 09:38 PM
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Oct 17 2019, 08:35 PM
Do you understand how this code works?If so, addin...