different baudrate


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2010
    Posts
    3

    Default different baudrate

    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...

  2. #2
    Join Date
    Jan 2010
    Posts
    3

    Default baudrate

    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....

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818

    Default

    Quote Originally Posted by danial View Post
    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
    These Defines are used With HSEROUT and HSERIN and not any other serin type commands


    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'
    What are you hoping to accomplish here? Exactly.

    next a
    pause 100
    What it will do is send out those characters in ASCII

    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.

  4. #4
    Join Date
    Jan 2010
    Posts
    3

    Default

    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.

Similar Threads

  1. 12F629 maximun Baudrate
    By MaxG in forum Serial
    Replies: 12
    Last Post: - 28th May 2016, 05:22
  2. Serial Baudrate 115200
    By kblim in forum mel PIC BASIC Pro
    Replies: 35
    Last Post: - 9th November 2011, 18:42
  3. Hserin baudrate select
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th January 2009, 19:55
  4. 16f88 internal osc 8mhz max serial baudrate ?
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th December 2008, 23:27
  5. max baudrate serout2 command
    By mat janssen in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th July 2004, 06:32

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts