A96G150 User's manual
4. Central Processing Unit (CPU)
29
4.2
Addressing
6 addressing modes
Direct addressing
━
In Direct Addressing, the operand is specified by an 8-bit address field. Only internal data
and SFRs may be accessed using this mode.
Indirect addressing
━
In Indirect Addressing, the operand is specified by an address contained in a register.
Two registers (R0 and R1) from the current bank or the Data Pointer may be used for
addressing in this mode. Both internal and external Data Memory may be indirectly
addressed.
Register addressing
━
In Register Addressing, the operand is specified by the top 3 bits of the opcode, which
selects one of the current bank of registers. Four banks of registers are available. The
current bank is selected by bits 3 and 4 of the PSW.
Register specific addressing
━
Some instructions only operate on specific registers. This is defined by the opcode. In
particular many accumulator operations and some stack pointer operations are defined in
this manner.
Immediate DATA
━
Instructions which use Immediate Data are 2 or more bytes long and the Immediate
operand is stored in Program Memory as part of the instruction.
For Example) MOV A, #100
loads the Accumulator with the decimal number 100. The same number could be specified
in hex digits as 64H.
Indexed addressing
━
Only Program Memory may be addressed using Indexed Addressing. It is intended for
simple implementation of look-up tables. A 16-bit base register (either the PC or the DPTR)
is combined with an offset stored in the accumulator to access data in Program Memory.
Содержание A96G150
Страница 126: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 126 Figure 43 16 bit Timer Counter Mode Operation Example...
Страница 136: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 136 Figure 51 16 bit Timer Counter Mode Operation Example...
Страница 147: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 147 Figure 59 16 bit Timer Counter Mode Operation Example...
Страница 157: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 157 Figure 67 16 bit Timer Counter Mode Operation Example...
Страница 171: ...A96G150 User s manual 14 12 bit ADC 171 Figure 79 ADC Operation Flow Sequence...
Страница 333: ...A96G150 User s manual Revision history 333 Revision history Revision Date Notes 1 00 2022 06 22 First creation...