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


Tue Mar 26 2019, 08:09 PM
Thu Mar 14 2019, 08:44 PM
We don't send code,but you can ask for help in the 8051 forum
Thu Mar 14 2019, 11:00 AM
Jui Sanjay Kapare
Hello sir, I want code of interfacing DS18B20 with 8051.plz send the code as early as possible
Mon Jan 07 2019, 03:31 AM
@REVOCATUS please post in the AVR forum
Mon Dec 24 2018, 09:25 AM
sorry I mean referee boards for player substitution
Mon Dec 24 2018, 09:24 AM
hi am.looking how to build referee by using Atmega 328 and its codes
Sat Dec 15 2018, 01:45 PM
Arslan ayoub
Hii ,, can I get the simulation of numeric keypad lock on proteus
Mon Dec 03 2018, 05:17 PM
Please post questions in the forum. The chat box is for chat
Mon Dec 03 2018, 06:43 AM
help! I don't understand busy flag!
Sun Dec 02 2018, 08:01 PM



Tue Mar 12 2019, 07:11 AM
Fri Mar 08 2019, 02:08 AM
Thu Mar 07 2019, 04:34 PM
Thu Mar 07 2019, 03:55 PM
Mon Mar 04 2019, 11:08 PM
Tue Feb 26 2019, 06:06 PM
Mon Feb 25 2019, 06:26 AM
Thu Feb 14 2019, 02:21 PM


Guests: 49, Members: 0 ...

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

Members: 38052
Newest member: tutu10
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Mar 24 2019, 09:52 PM
Counting pulses can be as simple asvoid interrupt ...
Ansh12 Avatar
Posted By Ansh12
Sat Mar 23 2019, 05:08 PM
Using the external interrupt on pin B0 is the best...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Mar 22 2019, 09:10 PM
Using the external interrupt on pin B0 is the best...
Ansh12 Avatar
Posted By Ansh12
Fri Mar 22 2019, 03:45 PM
I have pic16f877a and MPLABX8 and I want to count ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Mar 13 2019, 02:32 AM
HiI looked at" Atmel AVR042: AVR Design Considera...
tutu10 Avatar
Posted By tutu10
Tue Mar 12 2019, 07:13 AM
Hi...My firmware upgradable code lock seems to be ...
Yass7 Avatar
Posted By Yass7
Sat Mar 09 2019, 12:52 AM
It's exactly that ! it's my teacher who asked me t...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Mar 09 2019, 12:27 AM
As I understand it, you want to use a P89LPC952 /...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Mar 09 2019, 12:21 AM
After you get the string what do you want to do wi...
bharatsb Avatar
Posted By bharatsb
Thu Mar 07 2019, 04:40 PM
help me to write code for 8051 to receive string ...