2 data transfer functions, 2 data transfer functions -4, Maxq7667 user’s guide – Maxim Integrated MAXQ7667 User Manual
Page 310

Function:
UARTloader*
Summary:
This is an entry point for the customer to call the UART bootloader from their application code. The UART performs
an autobaud and if that succeeds, the loader will be launched and this function will never return. If the autobauding
fails, the routine returns an error code in A[7].
Input:
Clear Password lock before calling (if desired).
Output:
A[7] contains exit code of ERROR_NO_AUTOBAUD_CHARACTER or
ERROR_BAD_AUTOBAUD_CHARACTER if the function returns.
Notes:
1) This routine only returns on autobaud failure. It destroys nearly all accumulator, AP, GR, etc. values. Assume nothing survives and
only A[7] is valid on return.
18.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 2.
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 2.
3) This function automatically selects DP[0] as 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 2.
3) This function automatically refreshes the data pointer before reading the byte/word value.
__________________________________________________________________________________________________________
18-4
MAXQ7667 User’s Guide
*Refer to Section 8 for UART with LIN communication and Section 13 for in-system programming through UART (and JTAG).