Users Guide: MAXQ2000 Supplement Manual

MAXQ Family Users Guide:
MAXQ2000 Supplement
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: None
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 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: moveFPinc
Summary: Reads the byte/word value pointed to by BP[Offs] then increments Offs.
Inputs: DP[1]: Address to read from
Outputs: GR: Data byte/word read
Offs is incremented
Destroys: None
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 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: moveFPdec
Summary: Reads the byte/word value pointed to by BP[Offs], then decrements Offs.
Inputs: DP[1]: Address to read from
Outputs: GR: Data byte/word read
Offs is decremented
Destroys: None
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 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: 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 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 pointers before reading the byte/word values.
Maxim Integrated