DSP, Micros & Memory


Should you select serial EEPROM or Flash memory?

6 April 2006 DSP, Micros & Memory Access Control & Identity Management Products & Solutions

In many designs, the system requirements call for programmable non-volatile memory for data storage; a bootstrap device for a microcontroller or DSP; or a configuration memory device for a FPGA. Depending on your application, the type of memory you select can vary from design to design, although multiple memory solutions are usually possible.

The system design usually specifies a serial or parallel interface, dependent upon the application requirements and your overall system costs.

For serial memory, a serial EEPROM or serial Flash could be selected, while a parallel EEPROM or parallel Flash is available to meet the parallel memory requirements.

For space-limited applications, a serial device uses fewer pins and is usually the best choice; however, if you are already using an external parallel memory device in the system design for program memory, you have the option to use the same memory device for both program and data memory. Each memory type has its own pros and cons, but the final selection is usually based on the importance of the overall system costs, memory density, battery life and the system's functional requirements.

Serial bootstrap PROM

For applications requiring an external boot PROM memory device that is programmable, using serial or parallel memory depends on the microcontroller or DSP selected. If the interface is serial, your memory selection could be either a serial EEPROM or a serial Flash device. Microcontrollers or DSPs with high-speed requirements can then boot from a serial interface and download the firmware into a separate high-speed volatile memory device such as SRAM or DRAM, for system operation. Using this technique, the operating speed or bus width of the processor is not limited by the non-volatile serial memory device.

Memory density and cost can be the deciding factor between using a serial EEPROM or a serial Flash device. If the memory density requirement is below 512 Mbits, a serial EEPROM can be selected, since there are no serial Flash devices available at these lower densities. At densities above 1 Mbit, there are no serial EEPROMs available, so you would select a serial Flash device. At densities of 512 Kbits and 1 Mbit, both memory types are available, and your decision would be based upon the functionality you require and your final system costs.

In FPGA designs, serial interface memory is used for configuration on power-up, since various densities are used. Depending upon the specific FPGA you select, the type of memory available could be limited by the serial interface. Today, FPGAs are designed with either an SPI interface or an interface that is specifically designed for FPGAs. In either case, your decision to use a serial EEPROM or serial Flash device is still based upon the density required and device costs.

Serial or parallel data memory

When programmable non-volatile data memory is needed in your design, you could select serial or parallel memory. Of the various types of memory available, your design could use a serial EEPROM, serial Flash, parallel EEPROM or a parallel Flash device. Whether you specify serial or parallel memory depends on the types of serial ports or spare I/O ports available in the microcontroller, the availability of an external parallel Flash device for program memory and the overall system design costs.

Consider whether the program memory should reside internal or external to the microcontroller in your system design. If it resides in an external parallel memory device, are there spare memory sectors available in the device for data memory? If there are not, an external serial memory device would be necessary. If sectors are available for data memory, the system requirements should be reviewed to determine if it is an option to use this memory. These requirements include memory endurance, battery life and the amount of available SRAM in the design. The temperature profile of the system must also be taken into account, since it affects these requirements.

* Typical endurance levels for parallel Flash devices are 10 000 cycles, serial Flash devices can range from 10 000 to 100 000 cycles and serial EEPROMs can exceed 1 million cycles. These levels can decrease substantially as temperature increases, so you might want to be conservative when making a decision based upon endurance.

* If battery life is the most important specification, your system should be designed to minimise power consumption. In a system using an external parallel Flash device for both program and data memory, the power drawn to update this type of memory would be higher than a serial device. For a small number of updates, the amount of power drawn may not have a big impact, but as the number increases, it could become substantial and could be a limiting factor. The reason for the higher current draw is that data modifications in Flash are performed a sector at a time, so more devices must remain in the ON state to make any updates. The system then draws more overall power for a longer period of time and reduces the battery charge at a faster rate. In a serial EEPROM, the data can be modified a byte at a time, so less power is consumed.

* In addition to the higher power consumption in a system using parallel Flash for program and data memory, additional SRAM may be required for data modifications. To change a single byte of data, a sector of data within the Flash must first be downloaded into SRAM and modified while it still resides in SRAM. Then, the Flash sector is erased so that the modified data in SRAM can be loaded back into the Flash device. To save overall costs and space, you can choose a parallel device for both program and data memory, but you should be aware of its limitations.

Serial EEPROM or Serial Flash

If you specify a serial memory device in your system, selecting an EEPROM or Flash device can depend on the density required. Today, any density above 512 Kbits or 1 Mbit is serviced with a Flash device, but an EEPROM can be selected if the density is below this range.

* The types of serial ports available in the microcontroller can help you select your memory device, since serial Flash devices are only available with an SPI port. This means that the microcontroller will also require an SPI port or it must have four or five spare I/O ports and some available program space to emulate an SPI port if serial Flash is selected. Also, a specific amount of SRAM that is larger than a Flash sector must be available for data modifications. EEPROMs within this density range are available with an SPI or an I²C port.

* When modifying the data in the Flash device, the amount of current drawn from the battery is higher than an EEPROM, because the data is modified a sector at a time. This means that several devices in the system design are ON for a longer period of time. If minimising power drawn from the battery is critical, then it will be advantageous to select an EEPROM.

* Operating voltage is important, since the current Flash devices operate over a voltage range of 2,7 to 3,6 V, while EEPROM devices operate over the range of 1,8 to 5,5 V.

* If cost is your only concern, the serial Flash device is usually selected, since it is less expensive per bit than a serial EEPROM.

Summary

The selection of EEPROM or Flash memory can be a simple decision determined by the system design parameters. In other cases, there are design trade-offs that take place before this selection is made. For this reason, cost should not be the deciding factor, because it could mean that some of the design parameters are not met and the end application does not operate as expected. In today's market, more portable devices are available and battery life has become a very important requirement in the usefulness and attractiveness of the product. Therefore, make sure all design trade-offs have been studied before selecting the type of memory to use.



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

EMC limits and levels
Altron Arrow Editor's Choice Circuit & System Protection
As soon as electronics and electrical systems started interfering with each other, the world had to come to some consensus. Considering physics is universal and does not care about what country electrical/electronic products are used in, it should be the same everywhere, right? It is nearly there, but not quite.

Read more...
Introducing STM32CubeMX2
Altron Arrow Design Automation
STMicroelectronics has launched STM32CubeMX2, a new evolution of its popular configuration and code generation tool for STM32 microcontrollers.

Read more...
Next-gen SPE
Altron Arrow Telecoms, Datacoms, Wireless, IoT
Next-generation 100/1000BASE-T1 Single Pair Ethernet PHYs integrate MACsec security, time sensitive networking, and functional safety.

Read more...
Non-contact linear position sensor
Electrocomp Test & Measurement
The Vishay 40 LHE Linear Position Sensor, designed for industrial motion control and automation, delivers robust, non-contact measurement performance using Hall effect technology.

Read more...
Industrial vibration sensing simplified
Altron Arrow Analogue, Mixed Signal, LSI
The IIS3DWBG1 from STMicroelectronics is a high performance, three-axis digital vibration sensor engineered for demanding industrial applications where accurate motion monitoring is essential.

Read more...
ESP32-S31 for advanced IoT
iCorp Technologies DSP, Micros & Memory
At the heart of the device is a dual-core 32-bit RISC-V MCU operating at up to 320 MHz, delivering 6,86 CoreMark/MHz performance with MMU support for efficient memory management.

Read more...
Cortex-M33 performance for cost-sensitive designs
Future Electronics DSP, Micros & Memory
The STM32C5 series from STMicroelectronics introduces a new generation of entry-level microcontrollers engineered to deliver enhanced processing capability, modern security, and cost-effective scalability for connected embedded applications.

Read more...
Controlling access for people and vehicles
IDEMIA STid Security Technews Publishing Editor's Choice Access Control & Identity Management Asset Management Industrial (Industry) Mining (Industry)
When it comes to access control, the security requirements of mines and the industrial sector are similar, requiring a layered approach that combines physical barriers, digital authentication, and continuous monitoring to protect personnel, assets, and operational continuity.

Read more...
Memory shortage 2026: Engineering implications for South Africa
DSP, Micros & Memory
[Sponsored] Addressing this challenge requires system-level thinking and adoption with McKinsey Electronics providing the engineering and sourcing framework required to maintain system resilience despite ongoing global constraints.

Read more...
Impro announces Primo update
News & Events Access Control & Identity Management Integrated Solutions
Impro Technologies recently held a launch event in which it introduced a series of new products, from new readers through to its updated Primo access management software.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved