
• Equate is used for file register addresses.
• Data Direction code is SET, and may be changed later.
• Timer count value is defined as a constant.
• Text substitution is used for input bits.
• File path for standard P16F877A include file is specified in double
quotes.
Interfacing PIC Microcontrollers
42
Directive Example Meaning
LIST p=16f877a, w=2, st=off Listing options: e.g. select MCU, print errors only, no symbol table
ORG 05 Set the first program memory address for the code that follows
END End of program source code
PORTA EQU 05 Declare a label (assembler constant)
Max SET 200 Declare a label value which may be changed later
(assembler variable) ...