beautypg.com

2 data transfer functions -6, 2 data transfer functions – Maxim Integrated MAXQ7666 User Manual

Page 383

background image

MAXQ7665/MAXQ7666 User’s Guide

16-6

16.2 Data Transfer Functions

Function:

moveDP0

Summary:

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

Inputs:

DP[0]: Address to read from.

Outputs:

GR: Data byte/word read.

Destroys:

Selects DP[0] in DPC.

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 explained in

Section 1.

The CDA0 and CDA1 bits must be set appropriately to access either the upper or lower half of program flash memory.

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

Function:

moveDP0inc

Summary:

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

Inputs:

DP[0]: Address to read from.

Outputs:

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

Destroys:

Selects DP[0] in DPC.

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 explained in

Section 1.

The CDA0 and CDA1 bits must be set appropriately to access either the upper or lower half of program flash memory.

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

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:

Selects DP[0] in DPC.

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 explained in

Section 1.

The CDA0 and CDA1 bits must be set appropriately to access either the upper or lower half of program flash 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:

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

The CDA0 and CDA1 bits must be set appropriately to access either the upper or lower half of program flash memory.

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

Maxim Integrated

This manual is related to the following products: