Discussion in "Project Doubts" started by    Sudhansudeep    Aug 31, 2018.
Fri Aug 31 2018, 06:09 PM
#1
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
#2
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";

http://www.8051projects.net/download.php?view.248


[ Edited Sat Sep 01 2018, 01:25 AM ]
Sat Sep 01 2018, 05:58 AM
#3
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
#4
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.
Add
#define LCDWIDTH 16 //or 20
unsigned char store[LCDWIDTH+1];

change store_msg()

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


Also change clear_mybuff() as buffer is declared as 20 bytes
void clear_mybuff()
{
	unsigned int a;
	for(a=0;a<20;a++)
		MyBuff[a]=0x00;
}


[ Edited Sun Sep 02 2018, 09:52 PM ]
Mon Sep 03 2018, 02:23 AM
#5
Ok sir I understood just I need to change the number 20 with 16 right?
Mon Sep 03 2018, 03:02 AM
#6
#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
#7
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
#8
sir i have compiled the above program i am getting the following error
LENGTH:006H
ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
SYMBOL: MSG1
SEGMENT:?ID?GSMKEIL3
program size: data=176.5 xdata=0 code=1909
target not created

Tue Sep 04 2018, 04:16 PM
#9
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
#10
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.
https://www.keil.com/demo/eval/c51.htm

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

Information

Powered by e107 Forum System

Conversation

Wed Jun 19 2019, 09:21 AM
latamdatetfv
swimming
Wed Jun 19 2019, 07:34 AM
RbaseoCamb
Rbaseo#gennick[OPPPORRORROR,3,4]ZJ
AdiGhazi
Tue Jun 18 2019, 11:21 AM
Hlo Dear , I've to program AT89C51AC3 RT-LUM using flip but I'm getting time out error for RS232. Will you please suggest me which programmer will be supportable to program this Chip.
Sun Jun 16 2019, 07:48 PM
hanoch Taub
i need to interface sim800 to 8051, the problem is that on the module sim800 there are 9 pins connector and I don't know how to connect him to 8051, which pins to tx and rx on 8051 module sim there is
Tue May 28 2019, 07:14 PM
Ron Otsig
KBI does not work on P89LPC920 but it works on P89LPC925
Mon May 27 2019, 09:03 AM
BIJI MATHEW
Hello friends....
DragonDad
Tue May 21 2019, 03:02 PM
Hi. Who is online?
Tue May 14 2019, 12:38 AM
Jayson Contreras
Hello
Xkalebar
Sun Apr 28 2019, 09:06 AM
Please provide me the code for gsm based sms controlled notice board
ExperimenterUK
Sun Apr 14 2019, 10:52 PM
@hassan malik post your problem in the "General help Guidance and Discussion" forum

Downloads

Comments

AdiGhazi
Tue Jun 18 2019, 11:15 AM
Easwaran22
Thu Jun 13 2019, 10:16 AM
JenniferJJ
Thu Jun 13 2019, 05:12 AM
seyoonnet
Tue Jun 04 2019, 12:37 PM
Charbel
Sun Jun 02 2019, 03:30 PM
ronotsig
Mon May 27 2019, 03:00 AM
WilsonNig
Sun May 26 2019, 03:11 AM
DragonDad
Tue May 21 2019, 02:50 PM

Online

Guests: 45, Members: 0 ...

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

Members: 38073
Newest member: AdiGhazi
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Jun 18 2019, 10:19 PM
Okay.. I have never programmed the AT89C51AC3 or ...
AdiGhazi Avatar
Posted By AdiGhazi
Tue Jun 18 2019, 11:20 AM
Hlo Dear ,I've to program AT89C51AC3 RT-LUM using ...
JenniferJJ Avatar
Posted By JenniferJJ
Thu Jun 13 2019, 05:17 AM
Hi,Hello Members,I am the newbie member, I like ve...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu May 30 2019, 08:32 PM
It occurs to me that although the P89LPC921 and P8...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed May 29 2019, 09:05 PM
I would suggest a fresh approach.The Keil compile...
ronotsig Avatar
Posted By ronotsig
Wed May 29 2019, 03:13 PM
Since the code works for the P89LPC925, it is appa...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon May 27 2019, 06:23 PM
I can't see any reason that those registers would ...
ronotsig Avatar
Posted By ronotsig
Mon May 27 2019, 03:06 AM
I am trying to using P89LPC921 or P89LPC922 in a p...
Ansh12 Avatar
Posted By Ansh12
Sun Apr 28 2019, 02:15 PM
I made a minor change, it works in Proteus.Try the...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Apr 25 2019, 08:20 PM
I made a minor change, it works in Proteus.Try the...