Page 8 - Introduction to Microcontrollers Architecture, Programming, and Interfacing of The Motorola 68HC12
P. 8

Contents








         Preface                                                              x i
         List of Figures                                                     xiv
         List of Tables                                                       xx
         Acknowledgments                                                     xxi
         About the Author                                                   xxii






         1    Basic Computer Structure and the 6812                            1
         1.1 Basic Computer Structure                                          1
         1.2 The Instruction                                                   4
         1.3 A Few Instructions and Some Simple Programs                       8
         1.4 MC68HC812A4 and MC68HC912B32 Organizations                       16
         1.5 Variable Word Width                                              19
         1.6 Summary and Further Reading                                      21
             Problems                                                         23

         2   The Instruction Set                                              27

         2.1 Move Instructions                                                28
         2.2 Arithmetic Instructions                                          34
         2.3 Logic Instructions                                               38
         2.4 Edit Instructions                                                41
         2.5 Control instructions                                             42
         2.6 Input-Output Instructions                                        49
         2.7 Special Instructions                                             49
         2.8 Remarks                                                          51
             Problems                                                         53

         3   Addressing                                                      5 7

         3.1 Op Code Byte Addressing Modes                                    58
         .,2 Post-Byte Index Addressing Modes                                 60
         3.3 Relative Addressing and Position Independence                    67
         3.4 Stack Index Addressing, Reentrancy, and Recursion                71
         3.5 Examples                                                         76
         3.6 Architectural Notions of Addressing                              78
   3   4   5   6   7   8   9   10   11   12   13