–MCLRE, 265
–PWRTE, 264
–WDTE, 363
–WRT, 445
–Programming, 471
–Setting in C, 262
Harvard architecture, 44, 83, 84 Hexadecimal code, see Code, Hexadeci-
mal
High-level language, 231–250
–C, 45, 139, 153, 233–250
–– #bit, 244, 296, 323, 422
–– #byte, 243
–– #define, 243
–– #include, 243
–– #int, 389, 426
–– #use delay(), 414
–– #use fast_io(), 296, 414
–– #use i2c(), 336
–– int, 243
–– long int, 236, 426
–– unsigned int, 236
–– delay_us(), 414
–– disable_interrupts(), 422
–– enable_interrupts(), 422
–– get_timer1(), 389
–– i2c_read(), 335
–– i2c_start(), 335
–– i2c_stop(), 335
–– i2c_write(), 336
–– input(), 296, 414
–– output_pin(), 296, 414
–– read_adc(), 414, 422
–– read_eeprom(), 446
–– set_adc_channel(), 413
–– set_timer1(), 389
–– setup_adc(), 413, 422
–– setup_adc_ports(), 413
–– setup_ccp1(), 389
–– setup_counters(), 364
–– setup_spi(), 323
–– setup_timer_1(), 389
–– sleep(), 422
–– spi_data_is_in(), 324
–– spi_read(), 323
–– spi_write(), 323
–– write_eeprom(), 446
–– Absolute address, 243, 274, 414
–– Automatic data, 216, 427
–– Bit twiddling, 244, 295, 423
–– Fuses, 262, 363
–– Global data, 426
–– Hexadecimal, 212, 223, 243
–– Interrupts in, 426
–– Pointer, 242
–– Static data, 216, 426
Input port, see Parallel I/O, Input
INDEX 487
Instruction
–decf, 59, 117
–incf, 59
–addlw, 47, 100, 107, 118
–addwf, 49, 86, 106
–andlw, 60, 121
–andwf, 60, 121
–bcf, 90, 114, 120, 122, 177, 275
–bsf, 90, 114, 121, 177
–btfsc, 61, 63, 64, 100, 122, 127
–btfss, 58, 61, 110, 111, 127
–call, 114, 140–143, 227
–clrf, 49, 57, 59, 90, 117
–clrwdt, 96, 258, 362–364, 366, 368
–clrw, 59
–comf, 60, 121
–decfsz, 61, 126, 143, 225
–goto, 51, 59, 59, 61, 86, 100, 104, 110,
114, 139, 227
–incfsz, 62, 63, 100, 126
–incf, 49, 58, 117
–iorlw, 60, 122
–iorwf, 122
–movf, 59, 116, 183
–movlw, 60, 116
–movwf, 60, 107, 116, 183
–nop, 125, 144, 257, 330, 339, 441
–retfie, 176, 184, 189, 428
–retlw, 142, 148, 167
–return, 54, 142, 428
–rlf, 60, 70, 71, 123, 289
–rrf, 60, 123
–sleep, 177, 241, 256, 259, 268, 363, 364, 375, 411, 422
–sublw, 55, 59, 68, 102, 118, 120
–subwf, 47, 117, 158
–swapf, 116, 183
–tris, 274
–xorlw, 60, 122
–xorwf, 60, 71, 122
–Execution time, 100, 143–147
–Macro, see Assembler, Macro
–Read-modify-write, 119, 275 Instruction set, 52–63 Integrated circuit
–2401 EEPROM, 352
–2701 EEPROM, 431
–6264 RAM, 39
–MAX233 dual RS-232 transceiver, 348
–MAX485 RS-485 transceiver, 349
–MAX505 quad DAC, 417
–MAX506 quad DAC, 417, 428
–MAX518 quad DAC, 327–336
–MAX549A dual 8-bit SPI DAC, 313
–DS1820 digital thermometer, 356
–27C64 EPROM, 26
–74LS00 quad 2-I/P NAND, 18
–74LS74 dual D flip flop, 31, 38
–74LS138 Natural decoder, 22