Discussion in "Project Doubts" started by    Sudhansudeep    Aug 31, 2018.
Fri Aug 31 2018, 06:09 PM
Shall I use the program as it is given with out any changes? And Can I use the same program for 16x4 LCD sir?
Fri Aug 31 2018, 08:41 PM
Status messages over 16 chars will need to be trimmed to 16 chars.

You will need to modify the LCD display routine to start a new line
after every 16 chars.

You will have to change 'Mob_no' to match your mobile.
unsigned char code Mob_no[]= "9739317976";


[ Edited Sat Sep 01 2018, 01:25 AM ]
Sat Sep 01 2018, 05:58 AM
Thank you sir I have understood that I have to change the mobile number and have to give my mobile number which I will be using. But I did not understand the concept that u have stated regarding the LCD display to trimm to 16 chars will u please tell me which line of the program to change it to 16 chars
Sun Sep 02 2018, 09:46 PM
Okay.. I assumed the project would use all 4 lines.
In fact it only uses 2, so I wonder why a 4 line display is used.

The project will only safely display message up to 10 bytes long,
which is odd, but means no changes are needed for a 16 * 4 or 16* 2 display.

Simple changes allows 16 /20 char messages.
#define LCDWIDTH 16 //or 20
unsigned char store[LCDWIDTH+1];

change store_msg()

void store_msg(unsigned char msg_array[])
unsigned char i,j;
	while(msg_array[i]!='\r')  // copy to end of line or buffer full
 	 store[j]= msg_array[i];
	if( j >
=LCDWIDTH) break;  //stop at 16 / 20
	store[j]= 0; //terminate the string

Also change clear_mybuff() as buffer is declared as 20 bytes
void clear_mybuff()
	unsigned int a;

[ Edited Sun Sep 02 2018, 09:52 PM ]
Mon Sep 03 2018, 02:23 AM
Ok sir I understood just I need to change the number 20 with 16 right?
Mon Sep 03 2018, 03:02 AM
#define LCDWIDTH 16 //or 20
unsigned char store[LCDWIDTH+1];

change store_msg()

Shall I need to write the above lines also??
Mon Sep 03 2018, 08:47 PM
This version supports 16 character messages on 16*4 or 16*2 LCDs

[ Edited Mon Sep 03 2018, 08:55 PM ]
Tue Sep 04 2018, 03:01 PM
sir i have compiled the above program i am getting the following error
program size: data=176.5 xdata=0 code=1909
target not created

Tue Sep 04 2018, 04:16 PM
please sir can u help me in removing this error as i am using a kiel uvision 3 software as i have to complete my project in few days
Tue Sep 04 2018, 06:49 PM
Have you made any changes to the code I posted ?

The errors might be due to the version of Keil you are using.
The best fix is to get the evaluation version of Keil 5.
It has a limit of 2K, but this project is less than 2K so will be okay.

You have to register but it is free.

Does the original project compile ?
If so you could just use that and edit your phone number and
status messages to fit.

[ Edited Tue Sep 04 2018, 07:56 PM ]

Get Social


Powered by e107 Forum System


Thu Sep 13 2018, 04:28 AM
hii!! some1 please let me know how i ll get rfid code to 8051 by WEIGAND mode
Wed Sep 12 2018, 01:39 AM
is there anyone here?
Mon Aug 27 2018, 01:00 PM
Hello everyone´╝ü
Sat Jul 21 2018, 11:51 AM
Dibakar Bhanja Chowdhury
By using a 555 timer how can I expand the range of the mobile phone jammer? Please reply me asap
Sun May 20 2018, 03:31 PM
how to write and execute a program that read the keypad button and display the number on 7 segment on intel8051 at89s52 in assembly language?
Thu May 17 2018, 12:06 PM
sir iwant to ask about controller of three phase supply by using back to back thyristor instead of triac....will u give me some guideline?
Sat Apr 28 2018, 06:24 PM
ashutosh jain
IR Remote Switch using TV remote (RC5 Protocol) is not working properly. opp1 & opp2 is in problem.plz help
Sat Apr 28 2018, 01:39 AM
@kaiserslautern Post in forum
Wed Apr 25 2018, 12:39 PM
Hello everyone, using software uart is a very good idea for a second serial port. Thank you so much. I would kindly like to know how to connect this port to the PC?
Sun Apr 22 2018, 01:20 AM
This is a community site. Feel free to help anyone needing advice



Fri Sep 14 2018, 02:45 AM
Thu Sep 13 2018, 04:46 AM
Wed Sep 12 2018, 10:36 PM
Tue Sep 11 2018, 03:25 PM
Thu Sep 06 2018, 02:28 PM
Tue Sep 04 2018, 06:15 PM
Sun Sep 02 2018, 02:20 PM
Fri Aug 31 2018, 08:26 AM


Guests: 46, Members: 0 ...

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

Members: 38006
Newest member: PCBindex
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Sep 13 2018, 08:39 PM
First of all, by reading your reply, I abandoned m...
DrNossberg Avatar
Posted By DrNossberg
Thu Sep 13 2018, 03:49 PM
Hi, thanks you for your reply ^^ First of all, by ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Sep 12 2018, 12:12 AM
HiThere are several issues here.The original 8051 ...
DrNossberg Avatar
Posted By DrNossberg
Tue Sep 11 2018, 08:08 PM
Hello everybody!First of all let me explain some s...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Sep 07 2018, 05:08 AM
The compiler thinks the micro doesn't have enough...
Sudhansudeep Avatar
Posted By Sudhansudeep
Fri Sep 07 2018, 02:59 AM
this is the build output message
Sudhansudeep Avatar
Posted By Sudhansudeep
Fri Sep 07 2018, 01:38 AM
Change the mobile number as [number removed] in t...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Sep 06 2018, 08:56 PM
I don't know what the problem is, I get no errors....
Sudhansudeep Avatar
Posted By Sudhansudeep
Thu Sep 06 2018, 01:12 PM
the code is Attachment ...
Sudhansudeep Avatar
Posted By Sudhansudeep
Thu Sep 06 2018, 12:48 PM
the code is same as u sent me for 16 chars