18F1320 ... Strange Memory


Closed Thread
Results 1 to 40 of 44

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Unhappy

    Sorry Luciano

    Same result ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Red face Finally got it ... but not good job !!!

    Hi all,

    I finally got it ...

    But I had to memorize 2 times the values ... and read the second writings.

    So, I think ...

    one lonely WRITE command writes the value FF instead of what you want !!!

    I stop here ...

    Working program attached ...

    Alain

    PS:
    for curious guys ... that is just a simple R/C gadget to use two servos in parallell ... Neutral, 2 1/2 travels, finely adjustable, plus invertible rotation for servo n°2 ...
    There's also a fail-safe ... servos are driven to their neutral ( recorded ...) position, if signal lost.
    Plus visual programming help w/ three LEDS ...
    Yessss ....
    Attached Files Attached Files
    Last edited by Acetronics2; - 6th April 2006 at 15:04.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    No, you have a problem... WRITING the value TWICE is not correct.

    You DO need up-to-date PBP and MPLAB (MPASM) as there was an EEPROM issue going back to v2.45 I think. Half the problem was Microchips Assembler too. Latest versions of everything work as expected in this department. Unfortunately I don't have that particular PIC to confirm your results.

    http://www.picbasic.co.uk/forum/showthread.php?t=547

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking Thanks , Mel, but ...

    My PbP and MPASM are the last versions : I verified it this morning ... and re-loaded PbP and its patch

    PbP 2.46 Patched and MPASM 5.02 ...

    Sorry, Mel ...
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    You have CONFIRMED you are invoking the latest PBP and MPASM and not an old installed version by mistake or error in path statements?

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Sorry ...

    YES, I do confirm ... old versions are always thrown to the trash box ...

    PbP used version seen in the MPLAB / Output/ Build window too ...

    Alain
    Last edited by Acetronics2; - 6th April 2006 at 15:18.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Just because I'm a nice girl, I've ordered one... hopefully, I'll have a 18F1320-I/P tomorrow...

Similar Threads

  1. Strange pic 16f877a memory loss
    By DavyJones in forum General
    Replies: 23
    Last Post: - 6th July 2009, 20:27
  2. Need the code to write to a memory
    By Hamlet in forum General
    Replies: 0
    Last Post: - 20th August 2007, 00:22
  3. Replies: 4
    Last Post: - 2nd March 2007, 06:12
  4. sample code for M25P32
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th January 2007, 02:37
  5. Use internal program memory like DATA memory
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th December 2006, 18:38

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