Do you have a question? Post it now! No Registration Necessary
March 4, 2007, 9:02 pm

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

Re: PIC assembly code EEPROM

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"
--
----------------------------------------------------------------------------
Tim Daneliuk snipped-for-privacy@tundraware.com
----------------------------------------------------------------------------
Tim Daneliuk snipped-for-privacy@tundraware.com
We've slightly trimmed the long signature. Click to see the full one.
Site Timeline
- » DS89C450 serial data transfer
- — Next thread in » Microcontroller Discussions
-
- » Serial to ethernet
- — Previous thread in » Microcontroller Discussions
-
- » New(ish) assembler for PIC16 microcontrollers (asm1825)
- — Newest thread in » Microcontroller Discussions
-
- » Возможности тестера DT-830B
- — The site's Newest Thread. Posted in » Electronic Circuits (Russian)
-