To know more about the basics of this article, use the links given below.

PIC PROGRAMMING INSTRUCTION SETS

DATA TRANSFER GROUP

ARITHMETIC AND LOGIC OPERATIONS GROUP

PROGRAM FLOW CONTROL

Bit Operation Group

1) BCF

BCF is a resetting command instruction used for performing reset operations for a specified bit or specified register (simply called bit clearing flag or bit clearing command). Normally BCF resets the specified bit in f registers content.

  • Syntax: Label BCF f, b
  • Description: Reset the specified bit of register f
  • Operation: Result to f
  • Operand: 0 < f < 127 and 0 < b < 7
  • No. of words: 1
  • No. cycles: 1
  • Flags: nil

2 ) BSF

BSF is the inversing operation of BCF. This is also a bitwise operation. The BSF instruction will set the specified bit in the f register (simply called Bit Set Flag or Bit Set command).

  • Syntax: Label BSF f, b
  • Description: Set the specified bit of register f
  • Operation: Result to f
  • Operand: 0 < f < 127 and 0 < b < 7
  • No. of words: 1
  • No. cycles: 1
  • Flags: nil
Author

Comments are closed.