readcode on 16F737


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2005
    Posts
    10

    Default readcode on 16F737

    Hi,
    I want to program a serial number with the melabs programmer and use it in my program.
    Therefore, I added following code in my program;

    adrs VAR BYTE
    ReadCode $0FFF, adrs '

    And this is what I get during compiling:

    PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
    All Rights Reserved.
    PM Assembler 4.07, Copyright (c) 1995, 2004 microEngineering Labs, Inc.
    Error C:\PBP\PBPPIC14.LIB : [225] Undefined Symbol 'PMDATA'
    Error C:\PBP\PBPPIC14.LIB : [212] Extra Tokens on End of Line Error C:\CODEDE~1\SWPBPC~1\SNDREN~1\RCVR73~4\RCVR_7~2.AS M : [225] Undefined Symbol 'PMADR'
    Error C:\CODEDE~1\SWPBPC~1\SNDREN~1\RCVR73~4\RCVR_7~2.AS M : [225] Undefined Symbol 'PMADR'
    Error C:\CODEDE~1\SWPBPC~1\SNDREN~1\RCVR73~4\RCVR_7~2.AS M : [225] Undefined Symbol 'PMADR'
    Error C:\CODEDE~1\SWPBPC~1\SNDREN~1\RCVR73~4\RCVR_7~2.AS M : [225] Undefined Symbol 'PMADR'
    Error C:\CODEDE~1\SWPBPC~1\SNDREN~1\RCVR73~4\RCVR_7~2.AS M : [225] Undefined Symbol 'PMADR'
    *** 7 Errors ***

    How does this come, and what can I do to make it work? Without the 2 lines of code I don't have any error.

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


    Did you find this post helpful? Yes | No

    Default

    It looks like that PIC does not support the READCODE/WRITECODE commands.

  3. #3
    Join Date
    Nov 2005
    Posts
    10


    Did you find this post helpful? Yes | No

    Default

    it does support it. man thanks to CL who helped me out
    Last edited by joeri; - 29th July 2006 at 02:02.

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


    Did you find this post helpful? Yes | No

    Default

    Congratulations on getting it to work. Why don't you post how you managed to do that here on the forum for everyone elses benefit? So that next time someone plays with your chip and has a similar problem we all have a canned solution.

  5. #5
    Join Date
    Nov 2005
    Posts
    10


    Did you find this post helpful? Yes | No

    Default

    because it was 3am and I needed to sleep (I live in Belgium)
    The solution was that someone from Melabs sent me a file 'M16F7X7.INC' which I replaced, and now it compiles error-free.

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    For the records: this problem doesn't seems to happen with PBP V2.47
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Readcode in asm
    By joeri in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 27th January 2008, 13:25
  2. Problem with 16F737
    By rangerdoc in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th November 2007, 03:09
  3. Configuration of 16F737
    By Robson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th August 2007, 03:14
  4. Accessing the upper 64Kbytes with READCODE
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th March 2006, 21:22
  5. Message String Table using Readcode
    By mytekcontrols in forum Code Examples
    Replies: 2
    Last Post: - 10th July 2005, 23:17

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