free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes :: Forums :: Project Development :: Project Addition or Changes
 
<< Previous thread | Next thread >>
[HELP] How to change the LCD port of the Digital Code lock?
Go to page  [1] 2
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
nov2
Tue Mar 04 2008, 06:13AM
 User Offline
Registered Member #6428
Joined: Tue Mar 04 2008, 06:00AM

Posts: 5
Thanked 0 times in 0 posts
hi sir,
i'm a freshman of 8051 and i'm going to build a security system as my project.
ur Digital Code lock with LCD and Keypad using AT89C2051 is really helpful
but i have a problem:

i'm using 89s52 as my mcu and i want to use port3 to connect the keypad
and port0 to connect the LCD. how should i modify the program to achieve it?

really need help......THX!!!



Back to top


Ajay
Tue Mar 04 2008, 06:20AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3753
Thanked 696 times in 655 posts
are you going to use a different controller? i mean other than AT89C2051? why P0 and P3? special reasons?

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


nov2
Tue Mar 04 2008, 06:47AM
 User Offline
Registered Member #6428
Joined: Tue Mar 04 2008, 06:00AM

Posts: 5
Thanked 0 times in 0 posts
my project is supposed to be used in a shop, so it will have PIR sensor as detector, keypad to open the door or disalarm the system.
actually, i bought a 8951 Single Board Computer from the market and the default LCD port is port0. the 8052 is 40 pins type.
Back to top


Ajay
Tue Mar 04 2008, 08:38AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3753
Thanked 696 times in 655 posts
ok i understood.. but this means.. there might be change of connections.. not same as that of what i used.. In which mode LCD is connected on that SBC?
In my project i used LCD in 4-bit mode.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
 nov2 
nov2
Tue Mar 04 2008, 10:22PM
 User Offline
Registered Member #6428
Joined: Tue Mar 04 2008, 06:00AM

Posts: 5
Thanked 0 times in 0 posts
er...i'm not sure what is LCD mode but i guess is the same as urs. i will check it tonite and tell u.
btw, really appreciate ur prompt response!!
Back to top


nov2
Tue Mar 04 2008, 11:39PM
 User Offline
Registered Member #6428
Joined: Tue Mar 04 2008, 06:00AM

Posts: 5
Thanked 0 times in 0 posts
sorry that the default LCD port should be port1...
well, i can't find the bit mode, is it a big matter?
Back to top


Ajay
Wed Mar 05 2008, 09:05AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3753
Thanked 696 times in 655 posts
yes it does matter.. coz the code is written for LCD 4-bit.
Just tell me how LCD is connected to 8051.. i mean the connections of LCD pins with 8051's port 1. only then i can see what can be done.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


nov2
Wed Mar 05 2008, 09:24PM
 User Offline
Registered Member #6428
Joined: Tue Mar 04 2008, 06:00AM

Posts: 5
Thanked 0 times in 0 posts
is 2x7 jumper
Back to top


Ajay
Thu Mar 06 2008, 03:54AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3753
Thanked 696 times in 655 posts
looks like LCD is in 8-bit mode.. but i am still not sure.. why don't you see board's manual. you might get some info. Why don't you make a new board? whats problem with that?

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


cyrexxx
Tue Sep 30 2008, 09:40PM
 User Offline
Registered Member #10816
Joined: Sun Sep 21 2008, 07:50AM

Posts: 27
Thanked 0 times in 0 posts
@Ajay even i want to change the port ... i am using a at89c52 chip

the lcd works fine in p3 ( actually i have adapted your lcd.c and lcd.h for my project ) but when i connected it to p1 or p2 it doesn't initialize (p0 is used for keypad ) i need to use p3 for interrupts .
pease help
Back to top


Go to page  [1] 2  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems