Programming on board memory


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Posts
    44

    Default Programming on board memory

    I'm sure I've asked this before but I can find the answer in the archieves.

    I have a project based on the 16f877 with 2 x RS232 ports one of which is used as a boot loader the other one is just spare.
    I store 50 user changable paramaters using the data command and read these at startup.

    I want to allow the end user to read and change these paramaters and make a backup if required.

    So my questions are these.

    Can I use the mechanique bootloader to just read and write the ee2 memory or is it easier just to write a routine to read the 50bytes of data and send these out on the rs232 as a string, read this into a VB program then send the string back and just have pbp save the entire string using the data command?

    Rob

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


    Did you find this post helpful? Yes | No

    Default

    easy way, use VB and keep the Bootloader circuit on your target board.

    With VB you can enable/disable the DSR or DTR line(i'm too lazy to check wich one now). The trick is quite simple.

    In VB, enable the DXX line, that will RESET your PIC, disable the line, and send your commands to read the PIC EEPROM.

    In your PIC CODE, use a HSERIN with a timeout label. If after a X delay you don't receive the PC command, continue to the main program else, do your EEPROM upload/download stuff.
    Steve

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

Similar Threads

  1. Memory page boundarys and programming
    By circuitpro in forum General
    Replies: 2
    Last Post: - 3rd June 2009, 23:38
  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. Use internal program memory like DATA memory
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th December 2006, 18:38
  5. Replies: 8
    Last Post: - 7th December 2006, 15:42

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