Discussion in "Project Addition or Changes" started by    nov2    Mar 4, 2008.
Tue Mar 04 2008, 07:43 pm
#1
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!!!

Tue Mar 04 2008, 07:50 pm
#2
are you going to use a different controller? i mean other than AT89C2051? why P0 and P3? special reasons?
Tue Mar 04 2008, 08:17 pm
#3
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.
Tue Mar 04 2008, 10:08 pm
#4
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.
 nov2 like this.
Wed Mar 05 2008, 11:52 am
#5
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!!
Wed Mar 05 2008, 01:09 pm
#6
sorry that the default LCD port should be port1...
well, i can't find the bit mode, is it a big matter?
Wed Mar 05 2008, 10:35 pm
#7
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.
Thu Mar 06 2008, 10:54 am
#8
is 2x7 jumper
Thu Mar 06 2008, 05:24 pm
#9
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?
Wed Oct 01 2008, 10:10 am
#10
@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

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Richardedils
Wed Apr 24 2024, 04:07 am
ChrisLub
Tue Apr 23 2024, 05:21 pm
Davidbab
Tue Apr 23 2024, 10:41 am
Richardrit
Tue Apr 23 2024, 09:54 am
HenryLaf
Mon Apr 22 2024, 03:50 pm
bleradrar
Mon Apr 22 2024, 06:38 am
ppu-pro_ka
Sun Apr 21 2024, 07:39 pm
Infewow
Sun Apr 21 2024, 06:30 pm