READCODE and WRITECODE for a PIC16F727


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699

    Default READCODE and WRITECODE for a PIC16F727

    Hi all,

    I am using a PIC16F727 for one of my projects. This chip doesn't have EEPROM memory in it. So, instead of using external EEPROM memory I would like to know if I can use the READCODE and WRITECODE in this chip.

    One of the requirements to use these commands is that the chip must be able to access their own Flash memory. But, where do I find this info in the datasheet? How do I know if I can use these two commands in a PIC by reading the datasheet?

    Thank you all for your help,

    Robert

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Some of the 16F's do, but not your 16F727. Look for something like this in the data sheet:

    • Self-Programmability: These devices can write to
    their own program memory spaces under internal
    software control. By using a bootloader routine,
    located in the protected Boot Block at the top of
    program memory, it becomes possible to create an
    application that can update itself in the field.
    You can also use the old MAPS utility, and highlight your chip, and look at the Self Write Flash option to see if there is a yes by it:

    Attached Images Attached Images  
    Last edited by ScaleRobotics; - 28th June 2010 at 05:31.

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default

    scalerobotics,

    Thank you for your answer. In what section of the datasheet would you find this note? Did you find it in "Device Overview" or maybe in "Special Features of the CPU"?

    • Self-Programmability: These devices can write to
    their own program memory spaces under internal
    software control. By using a bootloader routine,
    located in the protected Boot Block at the top of
    program memory, it becomes possible to create an
    application that can update itself in the field.
    I am currently using external EEPROM memory, and I was hoping to get rid of this extra component by using the READCODE and WRITECODE commands. But, now I know I can't get rid of this external EEPROM memory. Thank you again.

    Robert

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    No problem. On the PIC18F2520 it is located in section 1.2. But on the PIC16F887, I just see a short reference in section 10.0
    Depending on the setting of the Flash Program
    Memory Self Write Enable bits WRT<1:0> of the
    Configuration Word Register 2, the device may or may
    not be able to write certain blocks of the program
    memory.
    So, no, its not real clear.
    Attached Images Attached Images  
    Last edited by ScaleRobotics; - 30th June 2010 at 01:21.

  5. #5
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default

    Scalerobotics,

    Thank you for your help. Your response is really helpfull.

    Robert

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