Connect with us

PIC assembly code EEPROM

Discussion in '8bit Microcontrollers' started by wt, Mar 4, 2007.

Scroll to continue with content
  1. wt

    wt Guest

    Hi,
    In PIC's such as the 16F84A, there is 64 bytes of EEPROM memory for data.
    How can you set some of these memory with values in assembly code? I don't
    want to be using the EEPROM's control registers and stuff, I want the hex
    file to contain the data and load it onto the PIC directly.
    Thanks
     
  2. Tim Daneliuk

    Tim Daneliuk Guest

    Stick this in your asm file somewhere (I like to do it at the end):

    ;;;;;;;;;;
    ;;; EEPROM Contents
    ;;;;;;;;;;

    org 2100h

    DE "This will end up in E2PROM"
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-