beautypg.com

Maxq family user’s guide: maxq2000 supplement – Maxim Integrated MAXQ Family Users Guide: MAXQ2000 Supplement User Manual

Page 89

background image

MAXQ Family User’s Guide:
MAXQ2000 Supplement

Function:

moveDP0dec

Summary:

Reads the byte/word value pointed to by DP[0], then decrements DP[0].

Inputs:

DP[0]: Address to read from

Outputs:

GR: Data byte/word read
DP[0] is decremented

Destroys:

None

Notes:

1) Before calling this function, DPC should be set appropriately to configure DP[0] for byte or word mode.

2) The address passed to this function should be based on the data memory mapping for the utility ROM, as shown in Figure 3. 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.

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

Function:

moveDP1

Summary:

Reads the byte/word value pointed to by DP[1].

Inputs:

DP[1]: Address to read from

Outputs:

GR: Data byte/word read

Destroys:

None

Notes:

1) Before calling this function, DPC should be set appropriately to configure DP[1] for byte or word mode.

2) The address passed to this function should be based on the data memory mapping for the Utility ROM, as shown in Figure 3. 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.

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

Function:

moveDP1inc

Summary:

Reads the byte/word value pointed to by DP[1], then increments DP[1].

Inputs:

DP[1]: Address to read from

Outputs:

GR: Data byte/word read
DP[1] is incremented

Destroys:

None

Notes:

1) Before calling this function, DPC should be set appropriately to configure DP[1] for byte or word mode.

2) The address passed to this function should be based on the data memory mapping for the utility ROM, as shown in Figure 3. 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.

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

Function:

moveDP1dec

Summary:

Reads the byte/word value pointed to by DP[1], then decrements DP[1].

Inputs:

DP[1]: Address to read from

Outputs:

GR: Data byte/word read
DP[1] is decremented

Destroys:

None

Notes:

1) Before calling this function, DPC should be set appropriately to configure DP[1] for byte or word mode.

2) The address passed to this function should be based on the data memory mapping for the utility ROM, as shown in Figure 3. 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.

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

Maxim Integrated

89