CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Parallax GPS help

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
vert02



Joined: 23 Jan 2009
Posts: 8
Location: Kuala Lumpur, Malaysia

View user's profile Send private message Send e-mail

Parallax GPS help
PostPosted: Fri May 08, 2009 5:00 am     Reply with quote

Hi guys...

i really need help on this one...
i just received my parallax gps receiver module

and i do not know how to either use it or program it..
i want to use it to track my robot and to navigate it..

anyone can share their experience?
John Morley



Joined: 09 Aug 2004
Posts: 97

View user's profile Send private message

PostPosted: Fri May 08, 2009 7:34 am     Reply with quote

Hi,

Try this: http://tinyurl.com/oo2cv3

Cheers!
_________________
John Morley
Guest








PostPosted: Mon May 11, 2009 7:49 pm     Reply with quote

well thanks for the heads-up
but my real problem is this: parallax gps are mostly use with other micro controllers...not the PIC16F877A.

anybody else with help?
mskala



Joined: 06 Mar 2007
Posts: 100
Location: Massachusetts, USA

View user's profile Send private message

PostPosted: Mon May 11, 2009 10:06 pm     Reply with quote

The communication is with the UART, look at any of the CCS UART examples. The UART is very easy to use with CCS C, and anyway you should only need the receive side. You only have to hook up 1 pin. The Parallax user manual shows the NMEA 'sentences' that it will send you automatically. Parse them as you receive for the data you wish.

Enable the uart interrupt and do the parsing in there, so the processor
has time to do other things as well. 4800 baud is very slow so you have
lots of time.
Code:

#use rs232( BAUD=4800,PARITY=N,BITS=8,ERRORS,STOP=1,UART1 )
enable_interrupts(INT_RDA);
enable_interrupts(GLOBAL);


Code:
#INT_RDA           // UART receive char
void uart_isr() {
   char a;

   if(kbhit()) {
      a=getc();
/*  do stuff here
}
vert02



Joined: 23 Jan 2009
Posts: 8
Location: Kuala Lumpur, Malaysia

View user's profile Send private message Send e-mail

PostPosted: Tue May 12, 2009 8:37 am     Reply with quote

oh ok~

But if I already use that uart pin for my zigbee...pin c6 and c7. Can I use other pin as well for my gps?
mskala



Joined: 06 Mar 2007
Posts: 100
Location: Massachusetts, USA

View user's profile Send private message

PostPosted: Tue May 12, 2009 10:24 am     Reply with quote

You can pick another pin but then you will need to use software UART which is going to consume much more CPU resources.
vert02



Joined: 23 Jan 2009
Posts: 8
Location: Kuala Lumpur, Malaysia

View user's profile Send private message Send e-mail

PostPosted: Sun May 24, 2009 4:10 am     Reply with quote

Can you guys help me find out the C program for this gps receiver just to get lat and longitude only?

Thanks
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group