beautypg.com

Maxq7667 user’s guide – Maxim Integrated MAXQ7667 User Manual

Page 312

background image

__________________________________________________________________________________________________________

18-6

MAXQ7667 User’s Guide

Function:

moveFPinc

Summary:

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

Inputs:

BP[OFFS]: Address to read from.

Outputs:

GR: Data byte/word read.

OFFS is incremented.

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.

Function:

moveFPdec

Summary:

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

Inputs:

BP[OFFS]: Address to read from.

Outputs:

GR: Data byte/word read.

OFFS is decremented.

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.

Function:

copyBuffer

Summary:

Copies LC[0] bytes/words 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]

Notes:

1) 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.

2) The addresses 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[0] as the data pointer before reading the byte/word value.