Page 1 of 1

GPS!

Posted: Mon Jul 16, 2012 8:22 am
by jgu1
Hi All!

I am making a project with a GPS module: I can see that the GPS macro´s take lot of space in the pic, that´s why I´m using a Pic 18f4525.

In the att. file I get no data in the display from the GPS. But if I change the Pic to a 16f877a it works. Has it something to do in my configuration of the pic :?: There is many settings for the 18f4525. Pls help. (The att. file is only a testprogram for the GPS)

Best regard

Jorgen

Re: GPS!

Posted: Mon Jul 16, 2012 10:52 am
by Gary Freegard
Hi Jorgen

I just had a look at the configuration and currently you have PortB A/D Enable set to configured as analog on reset should be digital as you are using this for the LCD.
And you also have Extended CPU Enabled, not sure what his does but I have disabled this when using 18F2455/4455

Hope this helps

Gary

Re: GPS!

Posted: Mon Jul 16, 2012 12:52 pm
by Benj
Hello,

Gary is correct having the setting "Extended CPU" enabled is known to cause problems with string data and arrays which are used by the GPS component.

My starting point would be to use a 1 second led flasher to test that all your Flowcode settings are correct for your hardware. Once you have confirmed this you know that things like the serial baud rate will be correct.

Re: GPS!

Posted: Mon Jul 16, 2012 1:01 pm
by jgu1
Hi Gary and Ben! :D

It help´s I changed the two setting Gary advised, and now I get data on the LCD from the GPS. (Lot of settings in the configuration for this Pic) and I don´t know all of them.

Thank you.

Best regard

Jorgen.

Re: GPS!

Posted: Mon Jul 16, 2012 2:07 pm
by Gary Freegard
Glad to be of help :D