Chapter 1 : Introduction to the HC12 Microcontroller - EngSoc
Chapter 1 : Introduction to the HC12 Microcontroller - EngSoc
Chapter 1 : Introduction to the HC12 Microcontroller - EngSoc
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
The 68<strong>HC12</strong> <strong>Microcontroller</strong><br />
16-bit Constant Indirect Indexed Addressing Mode<br />
- 16-bit offset added <strong>to</strong> index register <strong>to</strong> form address of memory<br />
location containing a pointer <strong>to</strong> memory location affected by<br />
<strong>the</strong> instruction.<br />
- Square brackets distinguish this addressing mode from 16-bit<br />
constant offset indexing. For example,<br />
LDAA [10,X]<br />
STAA [20,Y]<br />
Compare : LDAA 10, X<br />
LDAA [10,X]<br />
H. Huang Transparency No.1-31<br />
The 68<strong>HC12</strong> <strong>Microcontroller</strong><br />
16-bit Constant Indirect Indexed Addressing (example)<br />
0000<br />
…<br />
0010 10<br />
0011 22<br />
…<br />
0020 2f<br />
0021 10<br />
0022 ff<br />
LDAA 10, X ; Suppose X=0001<br />
; A