CY8C28xxx PSoC Programmable System-on-Chip TRM, Document No. 001-52594 Rev. *G
47
CPU Core (M8C)
2.6.9
Source Indirect Post Increment
Only one instruction uses this addressing mode. The source address stored in operand 1 is actually the address of a pointer.
During instruction execution, the pointer’s current value is read to determine the address in RAM where the source value is
found. The pointer’s value is incremented after the source value is read. For PSoC microcontrollers with more than 256 bytes
of RAM, the Data Page Read (MVR_PP) register is used to determine which RAM page to use with the source address.
Therefore, values from pages other than the current page can be retrieved without changing the Current Page Pointer
(CUR_PP). The pointer is always read from the current RAM page. For information on the MVR_PP and CUR_PP registers,
see the
Register Details chapter on page 125
. The instruction using the Source Indirect Post Increment addressing mode is
two bytes in length.
Source Indirect Post Increment Example:
2.6.10
Destination Indirect Post Increment
Only one instruction uses this addressing mode. The destination address stored in operand 1 is actually the address of a
pointer. During instruction execution, the pointer’s current value is read to determine the destination address in RAM where
the Accumulator’s value is stored. The pointer’s value is incremented, after the value is written to the destination address. For
PSoC microcontrollers with more than 256 bytes of RAM, the Data Page Write (MVW_PP) register is used to determine which
RAM page to use with the destination address. Therefore, values can be stored in pages other than the current page without
changing the Current Page Pointer (CUR_PP). The pointer is always read from the current RAM page. For information on the
MVR_PP and CUR_PP registers, see the
Register Details chapter on page 125
. The instruction using the Destination Indirect
Post Increment addressing mode is two bytes in length.
Destination Indirect Post Increment Example:
Table 2-14. Source Indirect Post Increment
Opcode
Operand 1
Instruction
Source Address Pointer
Source Code
Machine Code
Comments
MVI
A, [8]
3E 08
The value in memory at address 8 (the indirect address) points to a mem-
ory location in RAM. The value at the memory location, pointed to by the
indirect address, is moved into the Accumulator. The indirect address, at
address 8 in memory, is then incremented.
Table 2-15. Destination Indirect Post Increment
Opcode
Operand 1
Instruction
Destination Address Pointer
Source Code
Machine Code
Comments
MVI
[8], A
3F 08
The value in memory at address 8 (the indirect address) points to a mem-
ory location in RAM. The Accumulator value is moved into the memory
location pointed to by the indirect address. The indirect address, at
address 8 in memory, is then incremented.
Содержание CY8C28 series
Страница 65: ...64 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G RAM Paging ...
Страница 85: ...84 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Internal Main Oscillator IMO ...
Страница 93: ...92 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G External Crystal Oscillator ECO ...
Страница 97: ...96 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Phase Locked Loop PLL ...
Страница 125: ...124 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Страница 311: ...310 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G IDAC_CR0 1 FDh ...
Страница 317: ...316 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Страница 393: ...392 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Страница 425: ...424 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Analog Reference ...
Страница 461: ...460 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Two Column Limited Analog System ...
Страница 477: ...476 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Digital Clocks ...
Страница 483: ...482 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Multiply Accumulate MAC ...
Страница 513: ...512 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Internal Voltage Reference ...
Страница 523: ...522 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Switch Mode Pump SMP ...
Страница 533: ...532 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G I O Analog Multiplexer ...
Страница 537: ...536 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Real Time Clock RTC ...
Страница 561: ...560 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...