[HELP] How to change the LCD port of the Digital Code lock?
Tue Mar 04 2008, 07:43 pm
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!!!
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
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
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.
actually, i bought a 8951 Single Board Computer from the market and the default LCD port is port0. the 8052 is 40 pins type.
Wed Mar 05 2008, 11:52 am
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!!
btw, really appreciate ur prompt response!!
Wed Mar 05 2008, 01:09 pm
sorry that the default LCD port should be port1...
well, i can't find the bit mode, is it a big matter?
well, i can't find the bit mode, is it a big matter?
Wed Mar 05 2008, 10:35 pm
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.
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, 05:24 pm
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
@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
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
Powered by e107 Forum System