Skip to Content
Interfacing PIC Microcontrollers
book

Interfacing PIC Microcontrollers

by Martin P. Bates
April 2011
Intermediate to advanced
312 pages
9h 32m
English
Newnes
Content preview from Interfacing PIC Microcontrollers
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) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Interfacing PIC Microcontrollers, 2nd Edition

Interfacing PIC Microcontrollers, 2nd Edition

Martin P. Bates

Publisher Resources

ISBN: 9780750680288