Maxim-integrated DS4830 Optical Microcontroller Manual de usuario Pagina 226

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 227
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 225
DS4830 User’s Guide
226
25.3.10 UROM_copyBuffer
Function
UROM_copyBuffer
Summary
LC[0] bytes/words (up to 256) from DP[0] to BP[OFFS].
Inputs
DP[0]: Starting address to copy from.
BP[OFFS]: Starting address to copy to.
LC[0]: Number of bytes/words to copy.
Outputs
OFFS is incremented by LC[0]. DP[0] is incremented by LC[0].
Destroys
LC[0]
Notes:
This function can be used to copy from program flash to data RAM, or from one part of data RAM to another. It
cannot be used to copy data into flash memory; the UROM_writeFlash function should be used for this purpose.
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.
The addresses passed to this function should be based on the data memory mapping for the utility ROM, as shown
in Figure 25-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 the data pointers before reading the byte/word values.
Vista de pagina 225
1 2 ... 221 222 223 224 225 226 227

Comentarios a estos manuales

Sin comentarios