Maxim-integrated MAXQ622 Manual do Utilizador Página 238

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 255
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 237
MAXQ612/MAXQ622 Users Guide
17-2 Maxim Integrated
SECTION 17: UTILITY ROM
The MAXQ612/MAXQ622 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 use with lookup tables
Entry into stop mode
Ability to check a value against a stored secret
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 = dataMemory[0800Dh]
2) flashWriteEntry = dataMemory[functionTable + 0]
It is also possible to call utility ROM functions directly, using the entry points given above. Standard include files are
provided for this purpose with the MAXQ development toolset. This method calls functions more quickly, but the appli-
cation might need to be recompiled in order to run properly with a different version of the utility ROM.
Table 17-1. Functions for MAXQ612/MAXQ622 Utility ROM Version 1.00
INDEX FUNCTION NAME
ENTRY
POINT
SUMMARY
0 UROM_flashWrite 802Fh Programs a single word of flash memory.
1 UROM_flashErasePage 8031h Erases (programs to FFFFh) a 512-word sector of flash memory.
2 UROM_flashEraseAll 802Bh Erases (programs to FFFFh) all flash memory.
3 UROM_moveDP0 8013h Reads a byte/word at DP[0].
4 UROM_moveDP0inc 8015h Reads a byte/word at DP[0], then increments DP[0].
5 UROM_moveDP0dec 8017h Reads a byte/word at DP[0], then decrements DP[0].
6 UROM_moveDP1 8019h Reads a byte/word at DP[1].
7 UROM_moveDP1inc 801Bh Reads a byte/word at DP[1], then increments DP[0].
8 UROM_moveDP1dec 801Dh Reads a byte/word at DP[1], then decrements DP[0].
9 UROM_moveFP 801Fh Reads a byte/word at BP[OFFS].
10 UROM_moveFPinc 8021h Reads a byte/word at BP[OFFS], then increments OFFS.
11 UROM_moveFPdec 8023h Reads a byte/word at BP[OFFS], then decrements OFFS.
12 UROM_copyBuffer 8025h Copies LC[0] values (up to 255) from DP[0] to BP[OFFS].
13 UROM_stopMode 8027h Enters stop mode.
Vista de página 237
1 2 ... 233 234 235 236 237 238 239 240 241 242 243 ... 254 255

Comentários a estes Manuais

Sem comentários