Error When Compile


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2005
    Posts
    44

    Default Error When Compile

    when i am using the expression serout portb.1,2,["channel 1 ",#x,10,13] the compiler pass.when i am using the expession serout portb.1,2,["channel 1 ",DEC x,10,13] the compiler gives me an "error line 79 bad expession".I can't find why? i also check in forum other programms that use it like this .I am using PBP 2.47 and micro code studio plus 2.2.1.1.I also upload the jpeg file with error.Do anyone know why i have this error?
    Attached Images Attached Images  

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,529


    Did you find this post helpful? Yes | No

    Default

    Hi,
    It's because the DEC modifier isn't supported by the SEROUT command. You need to switch to SEROUT2, DEBUG, HSEROUT or HSEROUT2.

    /Henrik Olsson.

  3. #3
    Join Date
    Feb 2005
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    Thank's a lot for your quick reply.I lost much time and it was so easy......

Similar Threads

  1. Unable to pass a variable to LCDOUT without getting compile errors
    By Ferroto Baggins in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th February 2010, 16:43
  2. Compile and Program help using PICKit2
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 10th March 2009, 14:51
  3. USB PBPL Compile errors
    By Rob in forum USB
    Replies: 11
    Last Post: - 7th April 2008, 08:18
  4. Cannot compile for 40MHz 4 x pll
    By passion1 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 21st October 2007, 17:50
  5. Replies: 2
    Last Post: - 9th February 2006, 22:03

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