Maxim-integrated MAXQ7667 Uživatelský manuál Strana 312

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 347
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 311
__________________________________________________________________________________________________________ 18-6
MAXQ7667 Users Guide
Function: moveFPinc
Summary: Reads the byte/word value pointed to by BP[OFFS] then increments OFFS.
I
nputs:
B
P[OFFS]: Address to read from.
Outputs: GR: Data byte/word read.
OFFS is incremented.
Destroys: Selects BP in DPC.
Notes:
1) Before calling this function, DPC should be set appropriately to configure BP[OFFS] for byte or word mode.
2) The address passed to this function should be based on the data memory mapping for the utility ROM, as explained in
Section 2.
3) This function automatically selects BP[OFFS] as the data pointer before reading the byte/word value.
Function: moveFPdec
Summary: Reads the byte/word value pointed to by BP[OFFS] then decrements OFFS.
Inputs: BP[OFFS]: Address to read from.
Outputs: GR: Data byte/word read.
OFFS is decremented.
Destroys: Selects BP in DPC.
Notes:
1) Before calling this function, DPC should be set appropriately to configure BP[OFFS] for byte or word mode.
2) The address passed to this function should be based on the data memory mapping for the utility ROM, as explained in
Section 2.
3) This function automatically selects BP[OFFS] as the data pointer before reading the byte/word value.
Function: copyBuffer
Summary: Copies LC[0] bytes/words from DP[0] to BP[OFFS].
Inputs: DP[0]: Address to copy from.
BP[OFFS]: Address to copy to.
LC[0]: Number of bytes or words to copy.
Outputs: OFFS is incremented by LC[0].
DP[0] is incremented by LC[0].
Destroys: LC[0]
Notes:
1) 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.
2) The addresses passed to this function should be based on the data memory mapping for the utility ROM, as explained in
Section 2.
3) This function automatically selects DP[0] as the data pointer before reading the byte/word value.
Zobrazit stránku 311
1 2 ... 307 308 309 310 311 312 313 314 315 316 317 ... 346 347

Komentáře k této Příručce

Žádné komentáře