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

Sat May 15 2021, 11:47 AM
Derek Wolcott
Geometric Energy Corporation announced the dogecoin-funded mission on Sunday, with DOGE-1 representing a 40 kilogram cube satellite flying as a payload on a Falcon 9 rocket.
Thu May 13 2021, 07:18 PM
Rufus
Pretty section of content. I just stumbled upon your weblog and in accession capital to assert that I get actually enjoyed account your blog posts. Any way I will be subscribing to your augment and even I achievement you access consistently quickly. https://mkfinstitute.com Trisha Trisha
Wed May 12 2021, 01:23 PM
Jed Roan
Now you can promote your site all over the internet for FREE: http://www3.listofsitesthatacceptfreeads.club
Wed May 12 2021, 08:20 AM
Edgardo
If some one wants to be updated with most recent technologies afterward he must be visit this web page and be up to date every day. annual credit report https://creditscoresetf.com
Wed May 12 2021, 06:11 AM
Laurinda
Great website. A lot of useful information here. I'm sending it to some pals ans also sharing in delicious. And of course, thanks on your effort! annual credit report https://creditscorecheckn.com

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: 102, Members: 0 ...

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

Members: 38215
Newest member: Mirza123