Help to setup GPS connection.


Results 1 to 34 of 34

Threaded View

  1. #26
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    You are right, a word only goes up to 65535. If you have PBP v 2.5 or later, (and were using a PIC18 chip) you could select to use PBPL to compile, and define your large variables as LONG instead of WORD.

    If you want to stick with the PIC16 series, you could use N-BIT math. http://www.picbasic.co.uk/forum/cont...153-N-Bit_MATH

    By the way, it looks like you are using PM as your assembler.
    Code:
    @ DEVICE HS_OSC
    You probably need to use MPASM for N-Bit Math to work. For that, you define your configs like this:
    Code:
    @ __config _HS_OSC & _WDT_OFF & _LVP_OFF & _CP_OFF
    But you must comment out the configs in you C:/PBP/16F877A.INC file.

    See : http://www.picbasic.co.uk/forum/cont...o-your-Program
    Last edited by ScaleRobotics; - 7th November 2010 at 15:41.
    http://www.scalerobotics.com

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