25.08.2015 Views

UM10139

UM10139 Volume 1: LPC214x User Manual - Fab@Home

UM10139 Volume 1: LPC214x User Manual - Fab@Home

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Philips SemiconductorsVolume 1<strong>UM10139</strong>Chapter 21: Flash Memory21.9.2 Copy RAM to FlashTable 307: IAP Copy RAM to Flash commandCommandCopy RAM to FlashInput Command code: 51 10Param0(DST): Destination Flash address where data bytes are to be written. Thisaddress should be a 256 byte boundary.Param1(SRC): Source RAM address from which data bytes are to be read. Thisaddress should be a word boundary.Param2: Number of bytes to be written. Should be 256 | 512 | 1024 | 4096.Param3: System Clock Frequency (CCLK) in kHz.Return Code CMD_SUCCESS |ResultDescriptionSRC_ADDR_ERROR (Address not a word boundary) |DST_ADDR_ERROR (Address not on correct boundary) |SRC_ADDR_NOT_MAPPED |DST_ADDR_NOT_MAPPED |COUNT_ERROR (Byte count is not 256 | 512 | 1024 | 4096) |SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION |BUSY |NoneThis command is used to program the flash memory. The affected sectors shouldbe prepared first by calling "Prepare Sector for Write Operation" command. Theaffected sectors are automatically protected again once the copy command issuccessfully executed. The boot sector can not be written by this command.21.9.3 Erase sector(s)Table 308: IAP Erase sector(s) commandCommandErase Sector(s)Input Command code: 52 10Param0: Start Sector NumberParam1: End Sector Number (should be greater than or equal to start sectornumber).Param2: System Clock Frequency (CCLK) in kHz.Return Code CMD_SUCCESS |ResultDescriptionBUSY |SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION |INVALID_SECTORNoneThis command is used to erase a sector or multiple sectors of on-chip Flashmemory. The boot sector can not be erased by this command. To erase a singlesector use the same "Start" and "End" sector numbers.© Koninklijke Philips Electronics N.V. 2005. All rights reserved.User manual Rev. 01 — 15 August 2005 308

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!