Writecode quirkiness


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2006
    Posts
    65

    Default Writecode quirkiness

    After spending the better part of a day trying to figure out why my WRITECODE sometimes works and sometimes doesn't, I've come to the conclusion that the address argument MUST be a word variable and the data argument MUST be a byte variable. Also, I'm told by others that putting anything into the address & data arguments except a constant or a variable also produces strange results. I haven't tried determine if READCODE acts the same way, but I wouldn't be surpprised.

    Has anyone else experienced this?

    Joe

  2. #2
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Talking

    No,
    I put 14-bit-values in my ROM of a 16F876 with Writecode <Word-Var>,<Word-Var>.

    And I read it back with my programmer...

    But 18Fxxx is another joke...
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  3. #3
    Join Date
    Aug 2006
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    Yes, important point I forgot to mention...My processor is a PIC18F2620

    Joe

  4. #4
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default I use words

    It seems to work nice with my 18-pic using a WORD for address and a WORD for DATA. But it is less reliable if I try to use a word array. I need to move the data from the array into a temporary word variable and then write it.


    /me

Similar Threads

  1. Bootloader For 18F4520
    By isaac in forum mel PIC BASIC Pro
    Replies: 36
    Last Post: - 24th March 2010, 17:56
  2. WRITECODE, ERASECODE, and interrupts
    By RussMartin in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th March 2010, 02:46
  3. WRITECODE stores wrong 14-bit word values in FlashMEM
    By BobPigford in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 26th June 2009, 04:35
  4. Can anyone help me to use Writecode for pic18f458 ?
    By dip1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th June 2006, 22:29

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