You are on page 1of 4

Contents

 Introduction
 Byte Oriented Instructions
 Bit Oriented Instructions
 Literal Oriented Instructions
 Questions
 Summery

1
INTRODUCTION
• The instruction set for PIC microcontroller consists of only 35 instructions.

• A reason for such a small number of instructions lies primarily in the fact that we talking about RISC microcontroller
whose instructions are well optimized considering the speed of work, architecture simplicity and code compactness.

• Some of these is instructions are byte oriented and some bit-oriented instructions. The instruction set is listed in table.

 Byte-oriented operations (Operation done in bytes of data)


 Bit-oriented operations (Operation done in bit of data)
 Literal and control operations (Data given in instruction itself)

2
BYTE ORIENTED INSTRUCTIONS

• The byte-oriented instructions allow variable data to be used in a program, whereas the literal instructions allow
constant data to be used in a program.

• The byte-oriented instructions typically use the W register and a location in the register file to perform
some operation.

• Most of these instructions have three operands: The first is the register file location (specified by ‘f’), the
second determines the destination (specified by ‘d’), and the third selects the access bank or a register file
bank as determined by the bank select register (BSR) (specified by ‘a’).

• ‘f’ specifies which file register is to be used by the instruction and ‘d’ specifies where the result of the of
the operations is to be placed.

• If ‘d’ is zero, the result is placed in the WREG register or If ‘d’ is one, the result is placed in the file
register specified in the instruction.

3
BYTE ORIENTED INSTRUCTIONS

• The byte oriented instructions that require two parameters ( for example mov f,F(W)) except the f to be replaced by
the name of a special purpose register ( e.g. PORT A) or the name of a RAM variable (e.g. NUM1) which serves as the
source of the operant “f” stands for file register. The F(W) parameter is the F, if the destination is to be the source
register.

• W, if the destination is to be working register (i.e. accumulator or W register).

You might also like