Maxim-integrated DS4830 Optical Microcontroller Instrukcja Użytkownika Strona 225

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 227
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 224
DS4830 User’s Guide
225
25.3.7 UROM_moveBP
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.
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 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 BP[OFFS] as the data pointer before reading the byte/word value.
Implemented as: move GR, @BP[OFFS]
25.3.8 UROM_moveBPinc
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
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 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 BP[OFFS] as the data pointer before reading the byte/word value.
Implemented as: move GR, @BP[OFFS++]
25.3.9 UROM_moveBPdec
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
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 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 BP[OFFS] as the data pointer before reading the byte/word value.
Implemented as: move GR, @BP[OFFS--]
Przeglądanie stron 224
1 2 ... 220 221 222 223 224 225 226 227

Komentarze do niniejszej Instrukcji

Brak uwag