Page 466 - Programming Microcontrollers in C
P. 466

Index    451

            M                                        null, 19, 60
                                                     Number-to-character conversion, 424
            M68HC08, 149
                                                     numeric encoding/decoding, 352-356
            MAC multiplier input registers, 326
            macro definition, 56, 60, 102
            main( ), 1, 2, 3, 51, 427
               O
            malloc, 12, 101-102, 114
            masked ROM, 127, 153
                    one time programmable, 128
            math functions, 117
                     one’s complement, 28
            MC68300, 288
                            operators, 24-34
            MC68HC05 microcontroller, 142, 149
      optimizing code, 325
            MC68HC05EVM, 152
                        OPTION register, 159
            MC68HC05EVS, 142
                        OR, 26
            MC68HC11/12, 149, 211-286, 347-391
      OTP chip, 128, 154
            MC68HC16, 149, 287-296
                  output compare, 130-131, 185, 246-253
            MC68HC16EVB, 146
                        output_time function, 428
            MCORE architecture, 131, 393-446
            memory  models, 336
            memory allocation, 4, 10
                P
            memory management, 114-116, 156
                                                     P&E Microcomputer Systems, Inc., 146
            memory types, 153
                                                     page zero, 158
            memory-mapped I/O, 129
                                                     parameters, copies of, 52
            microcomputer, 123
                                                     periodic interrupt, 309-315
            microprocessor, 123
                                                     phone book program, 360
            MIX compiler, 386
                                                     PIT (see also programmable interval timer), 314­
            MMC2001 microcontroller, 393
                                                        315, 395, 402, 419-420, 425
               macros for, 400
                                                     pointers, 65-121
            mmc2001.h header, 400, 407
                                                        and function arguments, 70
            mnemonics, 140, 422
                                                        array name as, 69
            modular arithmetic, 334
                                                        assigning, 69
            modular program development, 347-349, 391
                                                        comparing, 68
            monitor routine, 370-376
                                                        incrementing/decrementing, 69
            motor control routines, 255-275
                                                        null, 98
            multidimensional arrays, 82-83
                                                        subtracting, 69
                                                        to functions, 84
                                                        type void as applied to, 69
            N
                                                     PORTA, 85, 109, 132
            names, 8
                                portable code, 296, 404
            nested functions, 52
                    pragma directives (C6805 compiler), 151
            nested if statements, 422
               pragma, 151
            Newton loop, 38
                         precedence, 7, 30, 33, 34-36
            NIPND interrupt pending register, 414
   preprocessor command, 2
            noise spikes, 219
                       print formatting, 113
            noisy switches, 255
                     printf, 2, 3, 5, 7, 18, 112
            normal interrupt enable register (NIER), 414
  printing routine, 378-380
            null pointer, 76, 98
                    program counter (PC), 289
   461   462   463   464   465   466   467   468   469   470   471