Searching \ for 'Initializing EEPROM at program time ??' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/timers.htm?key=time
Search entire site for: 'Initializing EEPROM at program time ??'.

Truncated match.
PICList Thread
'Initializing EEPROM at program time ??'
2000\04\14@160258 by John Albers

flavicon
face
Is there any way to initialize the 64 bytes of EEPROM on a PIC16F84 during programming?  What commands would I need to put into MPASM?  I have an EPIC programmer if that makes any difference.  Any help would be greatly appreciated.  Thank You

2000\04\15@085431 by KŸbek Tony

flavicon
face
Yep I guess :-)
Something like:

;
***********************************************************************
;
;  Here starts the EEPROM mem, used for user generated characters. These
will be sent
;  to LCD CGRAM at start up.
;

       ORG 0x2100
                       
My_LCDChar_1    EQU     0x00
               DW      b'00000000'     ; Top row char lcd adr. 0x00
               DW      b'00001110'     ; NOTE Only lowest five bits
used !!
               DW      b'00011111'     ;
               DW      b'00011101'     ;
               DW      b'00001110'     ;
               DW      b'00001110'     ;
               DW      b'00000100'     ;
               DW      b'00000000'     ; bottom row ( i.e. cursor line
)

My_LCDChar_2    EQU     0x08
               DW      b'00010101'
               DW      b'00001110'
               DW      b'00010001'
               DW      b'00010001'
               DW      b'00001110'
               DW      b'00001110'
               DW      b'00000100'
               DW      b'00000000'
....etc...

This will put 16 bytes into the eeprom memory at programming.
The My_LCDChar_X labels are the adress to put into read eeprom routine.
In example used for storing user defined characters to be sent
to an Hitachi display at startup. ( yep could be done
with an lookup table in program mem also :-) )

Have fun,

/Tony


Tony KŸbek, Flintab AB            
ÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓ
E-mail: spam_OUTtony.kubekTakeThisOuTspamflintab.com
ÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓ

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...