| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
LPC17xx/40xx EEPROM example
Peripheral examples

## Detailed Description

Example description
The EEPROM example shows how to use EEPROM interface driver.
The examples allows you to place a small string in a single page of the EEPROM and the string will remain across reset cycles.

To use the example, connect a serial cable to the board's RS232/UART port and start a terminal program to monitor the port. The terminal program on the host PC should be setup for 115K8N1.

Special connection requirements
There are no special connection requirements for this example.

Build procedures:
LPC17xx/40xx example quickstart for Keil uVision4
LPC17xx/40xx example quickstart for IAR EWARM
LPC17xx/40xx example quickstart for Code Red Xpresso

Supported boards and board setup:
Embedded Artists' LPC1788 Developer's Kit
Embedded Artists' LPC4088 Developer's Kit

Submitting LPCOpen issues:
Community support for LPCOpen

## Macros
#define | PAGE_ADDR 0x01/* Page number */
#define | CHKTAG "NxP"
#define | CHKTAG_SIZE 3
#define | ESC_CHAR 27

## Functions
static void | ShowString (char *str)
static uint32_t | MakeString (uint8_t *str)
int | main (void)
| Main program body.

## Variables
uint32_t | buffer [EEPROM_PAGE_SIZE/sizeof(uint32_t)]

## Macro Definition Documentation

#define CHKTAG "NxP"

Definition at line 72 of file eeprom.c.

#define CHKTAG_SIZE 3

Definition at line 73 of file eeprom.c.

#define ESC_CHAR 27

Definition at line 76 of file eeprom.c.

#define PAGE_ADDR 0x01/* Page number */

Definition at line 69 of file eeprom.c.

## Function Documentation

int main | ( | void |  | ) |

Main program body.

Returns
  Does not return

Definition at line 151 of file eeprom.c.

static uint32_t MakeString | ( | uint8_t * | str | ) |
| static

Definition at line 112 of file eeprom.c.

static void ShowString | ( | char * | str | ) |
| static

Definition at line 86 of file eeprom.c.

## Variable Documentation

uint32_t buffer[EEPROM_PAGE_SIZE/sizeof(uint32_t)]

Definition at line 79 of file eeprom.c.