Syntax error PIC16F684


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2005
    Location
    Dayton, Ohio
    Posts
    72

    Default Syntax error PIC16F684

    I am getting a syntax error on the following line in my PBP file (PBP V2.45):

    CMCON0 = 7

    But it's compiles fine if I replace it with:

    POKE $19, 7

    I rechecked my typing and I am spelling the register name correctly. The other registers can be written to using their names. Why does just this one produce a syntax error? Anyone seen this before?

    Jim

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    There is a software patch to fix this issue in v2.45... go here and download it...

    http://www.melabs.com/support/patches.htm

    Version 2.46 doesn't have this problem (but anyone reading this that does have v2.46, there is a patch for that too covering different PICs, so, if you haven't done already, go visit the above link also).

Similar Threads

  1. Endless supply of 'syntax error's.
    By BitHead in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th December 2009, 20:21
  2. Replies: 0
    Last Post: - 1st September 2008, 07:03
  3. Math operations & Syntax?
    By kevj in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 23rd February 2008, 01:40
  4. Need help with I2C syntax problem?
    By Michael Wakileh in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th July 2007, 19:11
  5. IF..THEN syntax
    By scaenix in forum mel PIC BASIC Pro
    Replies: 52
    Last Post: - 20th February 2007, 12:10

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