i'm using EB-85A with 38400 baudrate...
help me on writing pic the command to relate 38400 and T9600 so that i can run the program...
i'm using EB-85A with 38400 baudrate...
help me on writing pic the command to relate 38400 and T9600 so that i can run the program...
i'm going to connect between 16f877 and GPS EB-85A....
could someone help me...
i can't run this program...
'DEFINE HSER_RCSTA 90H
'DEFINE HSER_TXSTA 20H
'DEFINE HSER_BAUD 9600
'DEFINE HSER_SPBRG 25
DEFINE OSC 20
include"modedefs.bas"
pcout var portc.6 'Output to pc
pcin var portc.7 'Input from pc
gpsin var portb.2 'input from gps
gpsout var portb.1 'output to gps
gps_dat var byte
a var byte
for a = 0 to 41 step 1
lookup a,["$PMTK314,1,1,1,1,1,5,1,1,1,1,1,1,0,1,1,1,1"],gps_dat
SEROUT gpsout,T9600,[gps_dat] 'send pmtk to gps">command tok baudrate gps'
next a
pause 100
main:
serin gpsin,T9600,100,cont,[gps_dat]
cont:
SEROUT pcout,T9600,[gps_dat] 'send nmea to pc
'serout pcout,T9600,["rt",13]
goto main
end
any idea please....![]()
Your serout pcout will send 1 byte stored in gps_dat and then the STRING rt
So yeah, I have some ideas, you need to explain what you want this to do and what does / does not work, and we will help you.
Edit : didn't see the apostrophe '.
Here is a useful link: http://www.gpsinformation.org/dale/nmea.htm#AAM
Last edited by Archangel; - 29th January 2010 at 06:08.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
i'm doing for my project....
title : Positioning and navigation using GPS....
using PIC microcontroller to interface with GPS...
in this project i'm using Etek EB-85A module sensor...
Does anyone hv any idea on how to do the command so that i can run the program?....
Flow >> 1) GPS detect from satellite >>2)send data to PIC microcontroller >>
>>3) view result at serial communicator from microCode studio.
Bookmarks