Error: extra tokens on end of line


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scarroll01 View Post
    Hello Jason, I'm not too sure about the Microcode problem, (I use PBP 2.44/MPLAB IDE), but there are problems with the code. For instance, unless you've left out some code, the first thing that leaps out:-
    ... Steve.
    You know the upgrade to 2.50a is only $25, solves a lot of problems.

  2. #2
    Join Date
    Jan 2008
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    I've never got around to upgrading. I guess I will eventually.
    What problems? (Besides the lack of floating-point support?)

    ... Steve

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scarroll01 View Post
    I've never got around to upgrading. I guess I will eventually.
    What problems? (Besides the lack of floating-point support?)

    ... Steve
    Little stuff that gets on your nerves.
    Check melabs for the list.

  4. #4
    Join Date
    Jan 2008
    Location
    Vassar, Michigan USA
    Posts
    9


    Did you find this post helpful? Yes | No

    Default it gets it value later

    portAval gets a value assigned to it once it goes through the loop, so I can tell if the state of the port changes. So the first time through the loop, yes, portAval = 0, which it should. Also, the first time through the loop, the program spits out serially, the values of the input ports. This is fine for my use.

    All the program really does is sense the input pin changes and when a port changes value it spits out a serial string reflecting an ID code for the chip (from port e), a letter telling which port changed, and the value -easy.

    port e will have a set of DIP switches attached to it that will tell me which chip out of 8 is sending the code.

    I could have assigned it a value earlier in the code, but for all intensive purposes, it would not serve any functionality. In my app, the ports are going to read 0 about 99.9% of the time at power-up.

    However, I'm still occasionally experiencing the quirk where it when it compiles it saya 'tokens on end of line', etc. If I put it on PMASM setting, this doesn't happen... oh well. Once I get it to compile, and put it on the chip the code works great.

    I may try giving meLabs a call, although at this point it's really just an annoyance problem and I have a working product going out the door, it did cost me several hours of development time and few select words being spoken. I went through another situation where I had three of the same 16F877A's and they all ran differently, so I was reliving that nightmare too.

    Thanks everyone!
    J.-

Similar Threads

  1. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  2. RC5 decode on a 10F + Question
    By ultiblade in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 11th September 2008, 08:20
  3. Replies: 11
    Last Post: - 12th July 2008, 02:36
  4. ELSEIF Block Would be Good.
    By T.Jackson in forum PBP Wish List
    Replies: 30
    Last Post: - 14th May 2007, 03:36
  5. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22

Members who have read this thread : 0

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