Appendix F

Mid-Range Instruction Set

This appendix describes the instructions in the PIC mid-range family. Not all instructions are implemented in all devices but all of them work in the specific PICs discussed in the text, that is, the 16F84A and the 16F877.

Table F.1Mid-Range PIC Instruction Set

Image

Table F.2Conventions used in Instruction Descriptions

FIELD

DESCRIPTION

f

Register file address (0x00 to 0x7F)

w

Working register (accumulator)

b

Bit address within an 8-bit file register (0 to 7)

k

Literal field, constant data or label (may be either an 8-bit or an 11-bit value)

x

Don’t care (0 or 1)

d

Destination select;

     d = 0: ...

Get Embedded Systems Circuits and Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.