Discussion in "8051 Discussion Forum" started by    Ansh12    Nov 17, 2017.
Fri Feb 23 2018, 01:55 PM
#11


change your defines to

sbit E = P0^7; //E pin for LCD
sbit RS = P0^5; //RS pin for LCD

ExperimenterUK


If I define E and RS then compiler show errors

compiling keypad.c...
keypad.c(39): error C141: syntax error near '='
keypad.c(41): error C141: syntax error near '='
keypad.c(43): error C141: syntax error near '='
keypad.c(50): error C141: syntax error near '='
keypad.c(52): error C141: syntax error near '='
keypad.c(54): error C141: syntax error near '='
keypad.c - 6 Error(s), 0 Warning(s).


Fri Feb 23 2018, 02:43 PM
#12
sbit NOT #define

sbit E = P0^7; //E pin for LCD //use port 0
sbit RS = P0^5; //RS pin for LCD

NOT
#define E P3^6; //E pin for LCD
#define RS P3^7; //RS pin for LCD
Fri Feb 23 2018, 07:10 PM
#13


sbit E = P0^7; //E pin for LCD //use port 0
sbit RS = P0^5; //RS pin for LCD

ExperimenterUK



Thank's a lot for your help. now I am getting character on the screen.

Please look at post #7. there is keypad for calculator. so when I press key it doesn't show the same latter on screen ie. if I press "1" it show "o" if I press 2 it show "K"

How to get exact latter ?

Get Social

Information

Powered by e107 Forum System

Conversation

Fri Apr 09 2021, 02:02 PM
Hong
Quality articles is the secret to interest the users to visit the site, that's what this web page is providing. christian dating sites https://datingsitesww.com
Fri Apr 09 2021, 03:53 AM
QGWIJ38V49HEBD3WXF www.web.de
I have a small question for you
Thu Apr 08 2021, 06:26 PM
Lilly
Post writing is also a fun, if you be familiar with afterward you can write otherwise it is complex to write. dating sim https://onlinedatingtind.com/
Thu Apr 08 2021, 12:35 PM
Fredericka Horn
Thanks, Fredericka Horn
Thu Apr 08 2021, 12:03 PM
Ronaldwhits
https://coin2x.org

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 108, Members: 0 ...

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

Members: 38215
Newest member: Mirza123