Datasheet

Programming PIC Microcontrollers in BASIC - mikroElektronika
Chapter 8: Examples with Memory and Storage
Media
Introduction
8.1 EEPROM Memory
8.2 Flash Memory
8.3 Compact Flash
Introduction
There is no program on this world that doesn’t interact with memory in some way. First, during its
execution, it retains the operational data from, uses or alters it, and puts it back into the program
memory. Second, it is often necessary to store and handle large amount of data that can be obtained
from various sources, whether it is the car engine temperature acquisition data or some bitmap image
to be displayed on the GLCD. In this chapter we will focus on the latter problem, i.e. we’ll go through
the techniques of manipulating data on the so-called memory storage devices and systems.
8.1 EEPROM Memory
Data used by microcontroller is stored in the RAM memory as long as there is a power supply present.
If we need to keep the data for later use, it has to be stored in a permanent memory. An EEPROM
(E²PROM), or Electrically-Erasable Programmable Read-Only Memory is a non-volatile storage chip,
commonly used with PIC microcontrollers for this purpose. An EEPROM can be programmed and
erased multiple times electrically – it may be erased and reprogrammed only a certain number of
times, ranging from 100,000 to 1,000,000, but it can be read an unlimited number of times.
8.1.1 Internal EEPROM
Some PIC microcontrollers have internal EEPROM allowing you to store information without any
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/08.htm (1 sur 12)05/11/2004 02:28:29