PC to eeprom w/ bootloader


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2007
    Posts
    56

    Default PC to internal eeprom

    Is is possible to write directly to EEPROM with a PC ( serial )?

    I am thinking something like bootloader routine or ICSP , but instead of downloading program, it just download values to eeprom.


    Thanks,

    Johan
    Last edited by Johan; - 20th August 2007 at 06:49.

  2. #2
    Join Date
    Sep 2006
    Location
    Mexico
    Posts
    47


    Did you find this post helpful? Yes | No

  3. #3
    Join Date
    Jun 2007
    Posts
    56


    Did you find this post helpful? Yes | No

    Default

    Thanks for the link Raflex, but I want to write to PIC internal eeprom, so the program inside the PIC can access the value and run the program accordingly.

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


    Did you find this post helpful? Yes | No

    Default

    http://www.microengineeringlabs.com/...bp/progeex.bas

    ' PicBasic Pro program to receive HEX file from PC and write
    ' data to I2C memory. Writes data in page mode, 16 bytes at one
    ' time. Memory device must be addressed with 16 bits and capable
    ' of receiving 16 bytes at once.

    It's not exactly what you're looking for, but it should be easy enough
    to modifiy for your application.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5


    Did you find this post helpful? Yes | No

    Default Umm, you would have to write some code

    Hi,

    Well what i would do.... i will just opcode hope it helps

    1. Use Serial Port Interrupt 'check Instant Interrupts by Darrel Taylor in the forum
    2. In interrupt routine something like :
    Code:
    IntHandleRS232:
    While (Idontemember)=1 then
       COMIN = (Idont remember)
    Wend
    
    IF ComIn = 254 then     ' 254 is a command that indicates write eeprom of course you decide the number
         hserin [BO,B1]        ' receive Address B0, anda data B1 to write
         WRITE B0, B1      ' you could also control the addr from the pc
    ENDIF
    @INT_RETURN
    3. You would have to make a software (VisualBasic) on your PC that sends info with the format 254(command), addr, data.
    4. mmm this its easy but not straightfordward

    Well this is the way i have done it, again easy but not simple.
    Last edited by Josuetas; - 20th August 2007 at 16:45.

  6. #6
    Join Date
    Jun 2007
    Posts
    56


    Did you find this post helpful? Yes | No

    Default

    Thanks Bruce & Josuetas,

    I think I will try to mix both methods , Instant interrupt is simple to apply, while ME's sample program is complete with checksum

    By the way, does PIC16F616 have hardware serial port ( for HSerin command ) ? I never used Hserin/hserout command before, datasheet does not explicitly tell whether it has serial hardware, is it ICSP serial programming pin?

    Johan

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 14:46
  2. How to read stored data from MCU EEPROM into PC?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd October 2009, 15:26
  3. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  4. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 06:26
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 19:59

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