beautypg.com

10 urom_copybuffer, 11 urom_stopmode, 10urom�copybuffer – Maxim Integrated MAX31782 User Manual

Page 221: 11urom�stopmode

background image

MaximIntegrated 21-8

MAX31782 User’s Guide

Revision 0; 8/11

21.3.10UROM�copyBuffer

Notes:
• This function can be used to copy from program flash to data RAM, or from one part of data RAM to another . It can-

not be used to copy data into flash memory; the UROM_writeFlash function should be used for this purpose .

• Before calling this function, DPC should be set appropriately to configure DP[0] and BP[OFFS] for byte or word

mode . Both DP[0] and BP[OFFS] should be configured to the same mode (byte or word) for correct buffer copying .

• The addresses passed to this function should be based on the data memory mapping for the utility ROM, as shown

in

Figure 21-1

. When a byte mode address is used, CDA0 must be set appropriately to access either the upper or

lower half of program flash memory .

• This function automatically selects the data pointers before reading the byte/word values .

21.3.11UROM�stopMode

Notes:
• Stop mode should normally be called from user code .

Function

UROM_copyBuffer

Summary

LC[0] bytes/words (up to 256) from DP[0] to BP[OFFS] .

Inputs

DP[0]: Starting address to copy from .
BP[OFFS]: Starting address to copy to .
LC[0]: Number of bytes/words to copy .

Outputs

OFFS is incremented by LC[0] .
DP[0] is incremented by LC[0] .

Destroys

LC[0]

Function

UROM_stopMode

Summary

Enters stop mode .

Inputs

None

Outputs

None

Destroys

None