Maxq7667 user’s guide – Maxim Integrated MAXQ7667 User Manual

Page 311

Advertising
background image

18-5

__________________________________________________________________________________________________________

MAXQ7667 User’s Guide

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:

Selects DP[1] in DPC.

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 explained in Section 2.

3) This function automatically selects DP[1] as 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:

Selects DP[1] in DPC.

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 explained in Section 2.

3) This function automatically selects DP[1] as 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:

Selects DP[1] in DPC.

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 explained in Section 2.

3) This function automatically selects DP[1] as the data pointer before reading the byte/word value.

Function:

moveFP

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:

Selects BP in DPC.

Notes:

1) Before calling this function, DPC should be set appropriately to configure BP[OFFS] 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 explained in Section 2.

3) This function automatically selects BP[OFFS] as the data pointer before reading the byte/word value.

Advertising