3 temperature conversion function -6, 3 temperature conversion function – Maxim Integrated MAXQ7666 User Manual
Page 375

MAXQ7665/MAXQ7666 User’s Guide
15-6
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 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 pointers before reading the byte/word values.
15.3 Temperature Conversion Function
Function:
tempConv
Summary:
Performs internal/remote diode-connected transistor-based temperature measurements.
Inputs:
GR: Sensor source (SS) code.
A[0]: Single-ended or differential configuration, SEDIF. Set to 1 for differential or 0 for singled-ended.
Outputs:
GR: Temperature conversion result in degree Celsius.
Carry: Set on error or illegal SS code.
Destroys:
A[0], A[1], PSW; AP, APC set to 0
Notes:
1) Valid sensor source (SS) code identifiers:
SS = 0x00 Internal diode-connected transistor-based temperature measurement.
SS = 0x01 Remote diode-connected transistor-based temperature measurement on AIN0.
SS = 0x02 Remote diode-connected transistor-based temperature measurement on AIN2.
Maxim Integrated