(Created page with "Category:PIC Tutorials")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:PIC Tutorials]]
+
[[Category:Starter PIC16F877]]
 +
In this tutorial we will discuss how to access the PIC16F877A internal EEPROM memory to store and retrieve the data. Eeprom is basically used to store the non volatile data which is required to be stored even if there is power loss or controller resets.
 +
[[FILE:Pic16f877a_Eeprom.png]]
 +
 
 +
=PIC16F877A Memories=
 +
PIC16F877A comes with three memories Flash,RAM and EEPROM. Below table shows the memory capacity of PIC16F877A:
 +
{| class="table table-striped table-hover table-condensed table-bordered"
 +
|-class="info"
 +
!Memory|| Size || Description
 +
|-
 +
|FLASH || 8k-bytes || Used to store the programs
 +
|-
 +
|RAM|| 368-bytes || Temporary/ScratchPad memory used  during program execution.
 +
|-
 +
|EEPROM|| 256-bytes || Used to store the non-volatile data across power cycles
 +
|}
 +
<br><br>
 +
 
 +
=Prerequisites=
 +
Please check [[PIC Internal Eeprom|this tutorial]] for detailed explanation on PIC16F877A Internal Eeprom.<br><br>
 +
 
 +
=Code=
 +
Below is the program to write the data(A-Z) to eeprom and then read it back.
 +
<html>
 +
<script src="https://gist.github.com/SaheblalBagwan/b1087ae6b897c9815e0d59f410039ae1.js"></script>
 +
</html>
 +
 
 +
[[FILE:Pic16f877a_EepromOutput.png]]

Latest revision as of 13:47, 18 May 2016

In this tutorial we will discuss how to access the PIC16F877A internal EEPROM memory to store and retrieve the data. Eeprom is basically used to store the non volatile data which is required to be stored even if there is power loss or controller resets. Pic16f877a Eeprom.png

PIC16F877A Memories

PIC16F877A comes with three memories Flash,RAM and EEPROM. Below table shows the memory capacity of PIC16F877A:

Memory Size Description
FLASH 8k-bytes Used to store the programs
RAM 368-bytes Temporary/ScratchPad memory used during program execution.
EEPROM 256-bytes Used to store the non-volatile data across power cycles



Prerequisites

Please check this tutorial for detailed explanation on PIC16F877A Internal Eeprom.

Code

Below is the program to write the data(A-Z) to eeprom and then read it back.

Pic16f877a EepromOutput.png