Discussion in "Project Help" started by    Shezo    Apr 8, 2010.
Thu Apr 08 2010, 06:34 PM
#1
Hello Rickey,
Iam Done with my GPS programming by getting my Required string from GPS " $GPRMC...." Now i have to send it through GSM am also done with GSM at commands but the problem iam Facing is that at a same time in 89c52 GPS or GSM will work so i take a sbit P1^5 as a Mux activation bit.if its 1 then GPS data will be recieved if its 0 then GSM will transmitt and Recieve...So tell me how will i interface two RS232 with a one sbit which i have...

Thanks
Thu Apr 08 2010, 06:59 PM
#2
well you might need little more pins for mux purpose. take a look at CD4052 Analog MUX/DEMUX you use it for uart muxing.

Thu Apr 08 2010, 07:16 PM
#3
Try some of the posts around this post
http://www.8051projects.net/forum-t28099-120.html#post_32582
Fri Apr 09 2010, 06:25 AM
#4
hey Rickey i have been through this program which is some how similar to mine..here u can c he used a single pin name mux....


void main()
{
int ddd=0
lcd_delay();
int_lcd();
clear_lcd();

while(1)
{
qq=1;
mux=1;
r4=0;
Set_Baud_Rate_For_GPS();
Receive_gps_data();
mux=0;
Set_Baud_Rate_For_Mob();
Transmit_First(); //at
delay();
Transmit_Second(); //at+cmgf=1
delay();
Send_sms_gps_data();
for(ddd=0;<26;ddd++)
{
recv[ddd]=0;
}
r4=0
if(c1==0)
{
ACC=0x4f;
lcd_write_txt();
lcd_delay();
ACC=0x4b;
lcd_write_txt();
lcd_delay();
hex_lcd();
r4=1;
}
delay();
//delay();
//delay();

Transmit_First(); //at
delay();
Transmit_Second(); //at+cmgf=1
delay();
Read_command();
qq=0
if(read[0]=='!')
car_engine=0;

if(read[1]=='!')
car_engine=0;


if(read[2]=='!')
car_engine=0;


if(read[0]=='%')
car_engine=1;


if(read[1]=='%')
car_engine=1;


if(read[2]=='%')
car_engine=1;
delay();
}
}
Sun Apr 11 2010, 08:38 AM
#5
hi shezo i am really not sure what component he is using for mux-ing uarts. so if you can come up with the circuit it would be easy to help.
Mon Apr 12 2010, 07:09 AM
#6
well he is using max232...my friends said that to use buffer..i dont have enuf knowledge about buffer so prefer me some...i thought about nand or xor logic implementation

Mon Apr 12 2010, 07:15 AM
#7
Hey Rickey wot u think about this??


[ Edited Mon Apr 12 2010, 07:16 AM ]
Mon Apr 12 2010, 07:22 AM
#8
Tue Apr 13 2010, 09:38 AM
#9
yes that will work for sure

and using only one pin.. clever i never thought that way
Wed Apr 14 2010, 08:31 AM
#10
Dear Ajay and Shezo

I am doing almost the same project. I am using 89v51rd2, garming gps 15h and sim300

Please do advise me which option should i choose for connecting 2 serial devices (gps and gsm) to 89v51

1. Emulating a software UART like mentioned on the tutorials on the site
2. Using a 2:1 Mux - Quadraple
3. Do something like Shezo has done by using nand gates.

Regards

Abhishek

Get Social

Information

Powered by e107 Forum System

Conversation

ExperimenterUK
Sun Oct 13 2019, 12:23 AM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 12:18 PM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 09:37 AM
Nathaniel
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 10:48 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 09:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 06:33 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 02:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 08:13 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
ExperimenterUK
Thu Jul 11 2019, 09:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html
ExperimenterUK
Thu Jul 11 2019, 09:44 PM
@praveen123. Can you give a link to the project ?

Downloads

Comments

DeepakBGattani
Mon Nov 11 2019, 01:31 PM
Jeanbusatta
Sun Nov 10 2019, 04:42 AM
mdayaz
Sat Nov 09 2019, 03:41 PM
baoyen123
Fri Nov 08 2019, 10:06 AM
xiwang
Fri Nov 08 2019, 07:28 AM
ilylily07
Tue Oct 15 2019, 04:32 PM
hientran123
Tue Oct 15 2019, 02:27 AM
Sat Oct 05 2019, 02:38 PM

Online

Guests: 34, Members: 0 ...

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

Members: 38102
Newest member: DeepakBGattani
Forum Activity
Jeanbusatta Avatar
Posted By Jeanbusatta
Sun Nov 10 2019, 04:43 AM
ty, really needed it
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Oct 22 2019, 05:18 AM
wimac Avatar
Posted By wimac
Mon Oct 21 2019, 09:18 AM
I’ve been following this thread and looking at the...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:09 PM
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:02 PM
sir, when i on display ,sometime 3rd display is no...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 02:53 PM
sir, when i on display ,sometime 3rd display is no...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:13 PM
please find video attachment. 3rd & 4th displa...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:05 PM
sir, 3rd and 4th dot matrix display flickering, ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Oct 18 2019, 09:18 PM
Hopefully you understand some of the program.Which...