beautypg.com

1 overview, 21 .1 overview -2, Table 21-1 . max31782 utility rom functions -2 – Maxim Integrated MAX31782 User Manual

Page 215: 1overview

background image

MaximIntegrated 21-2

MAX31782 User’s Guide

Revision 0; 8/11

SECTION 21: UTILITY ROM

21.1Overview

The MAX31782 utility ROM includes routines that provide the following functions to application software:
• In-application programming routines for flash memory (program, erase, mass erase)
• Single word/byte copy and buffer copy routines for lookup tables in flash
• Entry into stop mode
To provide backwards compatibility among different versions of the utility ROM, a function address table is included
that contains the entry points for all user-callable functions . With this table, user code can determine the entry point for
a given function as follows:
1) Read the location of the function address table from address 0800Dh in the utility ROM .
2) The entry points for each function listed below are contained in the function address table, one word per function,

in the order given by their function numbers .

For example, the entry point for the UROM_flashEraseAll function can be determined by the following procedure .
1) functionTable = romMemory[800Dh]
2) flashEraseAllEntry = romMemory[functionTable + 2]
It is also possible to call utility ROM functions directly, using the entry points given in

Table 21-1

. Calling a function

directly will provide faster code execution .

Table21-1.MAX31782UtilityROMFunctions

INDEX

FUNCTIONNAME

ENTRY

POINT

SUMMARY

0

UROM_flashWrite

8449h

Programs a single word of flash memory .

1

UROM_flashErasePage

846Ch

Erases (programs to FFFFh) a 512-byte (256-word) sector of flash memory .

2

UROM_flashEraseAll

8482h

Erases (programs to FFFFh) all flash memory .

3

UROM_moveDP0

8491h

Reads a byte/word at DP[0] .

4

UROM_moveDP0inc

8494h

Reads a byte/word at DP[0], then increments DP[0] .

5

UROM_moveDP0dec

8497h

Reads a byte/word at DP[0], then decrements DP[0] .

6

UROM_moveDP1

849Ah

Reads a byte/word at DP[1] .

7

UROM_moveDP1inc

849Dh

Reads a byte/word at DP[1], then increments DP[0] .

8

UROM_moveDP1dec

84A0h

Reads a byte/word at DP[1], then decrements DP[0] .

9

UROM_moveBP

84A3h

Reads a byte/word at BP[OFFS] .

10

UROM_moveBPinc

84A6h

Reads a byte/word at BP[OFFS], then increments OFFS .

11

UROM_moveBPdec

84A9h

Reads a byte/word at BP[OFFS], then decrements OFFS .

12

UROM_copyBuffer

84ACh

Copies LC[0] bytes/words (up to 255) from DP[0] to BP[OFFS] .

13

UROM_stopMode

84B2h

Enters stop mode .