ProgramEeprom Method
UP ]

 

Description

This method is used to write a single word to one position of the target’s on-chip EEPROM.

Syntax

HCS121.ProgramEeprom (Address, wData)

  Part Type Description
Address Long Target’s on-chip EEPROM memory address to be written to. It must be a 16 bit address.
wData Word Word to be written.
 

Remarks

Before to write a word, you have to be sure that the position is erased (read as $FFFF), in other case you will have to erase the sector first using SectorEraseEeprom .Recall that an EEPROM sector is 4 bytes instead of 512 bytes like in flash memory. SectorModifyEeprom is a method that combine both mentioned before in a single operation.

See also:

SectorEraseEeprom method

SectorModifyEeprom method

 

If you have a question or suggestion please contact me. Updated: 07.18.2003
Copyright (c) 2003-2004 J.Gorgas. All rights reserved. All trademarks mentioned are the property of their respective owners.