eeprom.inc


Author: Jonathan Weaver, jonw0224@netscape.net
Date: 11/9/2005
Version: 1.0
Filename: eeprom.inc
Description: Reads and writes to EEPROM. Tested with PIC16F84A and PIC16F877A. Should offer, as a minimum, compatibility with PIC16F84(A) and PIC16F87X(A) microcontrollers.

External Variable List


;external eeadrw Temporary address location used by EEPROM_write


Procedure Heading List


EEPROM_read
EEPROM_write:


Procedure Descriptions


EEPROM_read
Description:
Read data from EEPROM. Expects: EEPROM address in WREG. Uses BNKSEL from banks.inc.
Parameters:
WREG address to read from
Returns: EEPROM data in WREG


EEPROM_write:
Description:
Write data to EEPROM Expects: DATA to write in WREG and ADDRESS to write in eeadrw. Uses BNKSEL from banks.inc.
Parameters:
WREG Data to write
eeadrw address to write to, should be accessable in same bank as EEADR.
Returns: Nothing