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

Thu Dec 03 2020, 10:09 PM
Errol
You made your stand very clearly!. essay writer service essay writer service
Thu Dec 03 2020, 09:30 PM
Thad
Wow a good deal of very good data! essay writer service essay writers
Thu Jun 11 2020, 06:27 AM
anudee
sir could please send the code for I2C and wifi interfacing with 8051
scena
Tue May 19 2020, 10:29 PM
Does anyone have microcontroller programming software for STC15F104W (core 8051, 4 k, 128 byte, 6 I/O pin, UART ... DIL8), that works?
Sat May 02 2020, 07:38 PM
Tamu Gurung
Hi I am looking for a assembly language program for a digital decimal counter. Time counts max limit of 2 mins starting from 2.00 mins and ending at 0.00. time is to be displayed on 4 7-segment LED displays. Edsim51 simulator to be used. Thanks

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

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

Members: 38215
Newest member: Mirza123