|
PIC16F193X Datasheet, PDF (344/418 Pages) Microchip Technology – 28/40/44-Pin Flash-Based, 8-Bit CMOS Microcontrollers with LCD Driver and nanoWatt Technology | |||
|
◁ |
PIC16F193X/LF193X
BCF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Bit Clear f
[ label ] BCF f,b
0 ⤠f ⤠127
0â¤bâ¤7
0 â (f<b>)
None
Bit âbâ in register âfâ is cleared.
BRA
Syntax:
Operands:
Operation:
Status Affected:
Description:
Relative Branch
[ label ] BRA k
-256 ⤠k ⤠255
(PC) + k â PC
None
Add the signed 9-bit literal âkâ to the
PC. Since the PC will have incre-
mented to fetch the next instruction,
the new address will be PC + 1 + k.
This instruction is a two-cycle instruc-
tion.
BRW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Relative Branch with W
[ label ] BRW
None
(PC) + (W) â PC
None
Add the contents of W (unsigned) to
the PC. Since the PC will have incre-
mented to fetch the next instruction,
the new address will be PC + 1 + (W).
This instruction is a two-cycle instruc-
tion.
BSF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Bit Set f
[ label ] BSF f,b
0 ⤠f ⤠127
0â¤bâ¤7
1 â (f<b>)
None
Bit âbâ in register âfâ is set.
BTFSC
Syntax:
Operands:
Operation:
Status Affected:
Description:
Bit Test f, Skip if Clear
[ label ] BTFSC f,b
0 ⤠f ⤠127
0â¤bâ¤7
skip if (f<b>) = 0
None
If bit âbâ in register âfâ is â1â, the next
instruction is executed.
If bit âbâ, in register âfâ, is â0â, the next
instruction is discarded, and a NOP is
executed instead, making this a
2-cycle instruction.
BTFSS
Syntax:
Operands:
Operation:
Status Affected:
Description:
Bit Test f, Skip if Set
[ label ] BTFSS f,b
0 ⤠f ⤠127
0â¤b<7
skip if (f<b>) = 1
None
If bit âbâ in register âfâ is â0â, the next
instruction is executed.
If bit âbâ is â1â, then the next
instruction is discarded and a NOP is
executed instead, making this a
2-cycle instruction.
DS41364A-page 342
Preliminary
© 2008 Microchip Technology Inc.
|
▷ |