beautypg.com

7 urom_movebp, 8 urom_movebpinc, 9 urom_movebpdec – Maxim Integrated MAX31782 User Manual

Page 220: 7urom�movebp, 8urom�movebpinc, 9urom�movebpdec

background image

MaximIntegrated 21-7

MAX31782 User’s Guide

Revision 0; 8/11

21.3.7UROM�moveBP

Notes:
• Before calling this function, DPC should be set appropriately to configure BP[OFFS] for byte or word mode .
• The address passed to this function should be based on the data memory mapping for the utility ROM, as shown

in

Figure 21-1

. When a byte mode address is used, CDA0 must be set appropriately to access either the upper or

lower half of program flash memory .

• This function automatically selects BP[OFFS] as the data pointer before reading the byte/word value .
• Implemented as: move GR, @BP[OFFS]

21.3.8UROM�moveBPinc

Notes:
• Before calling this function, DPC should be set appropriately to configure BP[OFFS] for byte or word mode .
• The address passed to this function should be based on the data memory mapping for the utility ROM, as shown

in

Figure 21-1

. When a byte mode address is used, CDA0 must be set appropriately to access either the upper or

lower half of program flash memory .

• This function automatically selects BP[OFFS] as the data pointer before reading the byte/word value .
• Implemented as: move GR, @BP[OFFS++]

21.3.9UROM�moveBPdec

Notes:
• Before calling this function, DPC should be set appropriately to configure BP[OFFS] for byte or word mode .
• The address passed to this function should be based on the data memory mapping for the utility ROM, as shown

in

Figure 21-1

. When a byte mode address is used, CDA0 must be set appropriately to access either the upper or

lower half of program flash memory .

• This function automatically selects BP[OFFS] as the data pointer before reading the byte/word value .
• Implemented as: move GR, @BP[OFFS--]

Function

UROM_moveBP

Summary

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

Inputs

BP[OFFS]: Address to read from data space (include 8000h offset if reading from flash) .

Outputs

GR: Data byte/word read

Destroys

None .

Function

UROM_moveBPinc

Summary

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

Inputs

BP[OFFS]: Address to read from data space (include 8000h offset if reading from flash) .

Outputs

GR: Data byte/word read .
OFFS is incremented .

Destroys

None

Function

UROM_moveBPdec

Summary

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

Inputs

BP[OFFS]: Address to read from data space (include 8000h offset if reading from flash) .

Outputs

GR: Data byte/word read .
OFFS is decremented .

Destroys

None