Skip to content

microchip-pic-avr-examples/dspic33a-curiosity-data-eeprom-emulation-demo

Repository files navigation

image

dsPIC33A Curiosity Data EEPROM Emulation Demo

Summary

Microchip Technology Inc., has expanded its product portfolio to include a wide variety of cost-effective PIC® Microcontrollers (MCUs) without an internal data EEPROM.

Many applications store nonvolatile information in the Flash program memory using table read and write operations. Applications that need to frequently update these data may have greater endurance requirements than the specified Flash endurance for the MCU/Digital Signal Controller (DSC) devices.

The alternate solution of using an external, serial EEPROM device may not be appropriate for cost-sensitive or pin-constrained applications.

This Data EEPROM Emulation library presents a third alternative that addresses these issues. This library features an interface similar to an internal data EEPROM, which uses available program memory and can improve endurance by a factor as high as 500.

This code example demonstrates the usage of Data EEPROM Emulation Library.

Related Documentation

Software Used

Hardware Used

Terminal Setup (Tera Term)

  1. Launch Tera Term

  2. Go to File -> New Connection.

  3. Select the "Serial" option and select the correct COM Port from the dropdown menu.

    COM port selection

  4. Go to Setup -> Serial port and ensure that the settings match the following:

    Tera Term Serial Port Settings

Operation

This demo runs the Data EEPROM Emulation , if emulation is successful then prints the message as shown below

image

If emulation fails then prints the message as shown below.

image

Accessing Data EEPROM Emulation Library

Device Family Procedure
Devices supported on Melody 1. Create project
2. Launch MCC
3. "Data EEPROM Emulation Library "will be available under "Libraries", if not available use content manager to download it.

For more information refer: https://www.microchip.com/en-us/software-library/dspic33-pic24-data-eeprom-emulation