Searching \ for 'programming the eeprom of 16F877' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page:
Search entire site for: 'programming the eeprom of 16F877'.

Truncated match.
PICList Thread
'programming the eeprom of 16F877'
2000\01\22@151916 by Markus Falkenau

picon face
Can anybody tell us how to write to
eeprom of the 16F877.
regards Markus

2000\01\23@120259 by Tom Handley

picon face
  Markus, this is a subject that I really wish Microchip would have
provided a better example... First, I assume you have the data book. If not,
get it... The example code on page 43 works exactly as described but they
don't provide the whole picture. Notice the "SLEEP" instruction. That
requires an interrupt to `wake up'. If you do not want to use interrupts,
you can simply replace SLEEP with a 10ms (or longer) delay. However, the
most efficient method is the one they describe.

  In your startup configuration you need to do the following:

     1. Set INTCON Bit 6 to enable Peripheral Interrupts.
     2. Set PIE2 Bit 4 (EEIE) to Enable "EEPROM Write Operation Interrupt".
        Note, this register is in bank 1 (RP1 = 0, RP0 = 1).

  In your Interrupt Handler, look for PIR2 Bit 4 (EEIF) which is the
"Write Operation Interrupt" flag Bit. As with most interrupt flags, you
need to clear the Bit. Note, PIR2 is in bank 0 (RP1 = 0, RP0 = 0).

  That's it. Works fine, everytime...

  - Tom

At 03:17 PM 1/22/00 EST, Markus Falkenau wrote:
>Can anybody tell us how to write to
>eeprom of the 16F877.
>regards Markus

Tom Handley
New Age Communications
Since '75 before "New Age" and no one around here is waiting for UFOs ;-)

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