beautypg.com

10 urom_movebp, 11 urom_copybuffer, 3 miscellaneous functions – Maxim Integrated MAXQ610 User Manual

Page 200: 1 urom_stopmode, 15 .3 miscellaneous functions -7, 15 .3 .1 urom_stopmode -7, Maxq610 user’s guide

background image

15-7

MAXQ610 User’s Guide

15.2.10 UROM_moveBP

Notes:
• Before calling this function, DPC should be set appropriately to configure BP[OFFS] for byte or word mode.
• The address passed to this function should be based on the data memory mapping for the utility ROM, as shown

in Figure 2-4 and Figure 2-5 . When a byte mode address is used, CDA0 must be set appropriately to access either
the upper or lower half of program flash/ROM memory .

• This function automatically refreshes the data pointer before reading the byte/word value.

15.2.11 UROM_copyBuffer

Notes:
• 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 2-4 and Figure 2-5 . When a byte mode address is used, CDA0 must be set appropriately to access either
the upper or lower half of program flash/ROM memory .

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

15.3 Miscellaneous Functions

15.3.1 UROM_stopMode

Function:

UROM_moveBP

Summary:

Reads the byte/word value pointed to by BP[OFFS] .

Inputs:

BP[OFFS]: Address to read from .

Outputs:

GR: Data byte/word read .

Destroys:

None .

Function:

UROM_stopMode

Summary:

Enters stop mode .

Inputs:

None .

Outputs:

None .

Destroys:

None .

Function:

UROM_copyBuffer

Summary:

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

Inputs:

DP[0]: Address to copy from .
BP[OFFS]: Address to copy to .
LC[0]: Number of bytes or words to copy .

Outputs:

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

Destroys:

LC[0] .