PIC16C926-I/CL Microchip Technology, PIC16C926-I/CL Datasheet - Page 132

no-image

PIC16C926-I/CL

Manufacturer Part Number
PIC16C926-I/CL
Description
64/68-Pin CMOS Microcontrollers with LCD Driver
Manufacturer
Microchip Technology
Datasheet
PIC16C925/926
SWAPF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
DS39544A-page 130
Before Instruction:
After Instruction:
REG1
REG1
W
=
=
=
Swap Nibbles in f
[ label ] SWAPF f [,d]
0
d
(f<3:0>)
(f<7:4>)
None
The upper and lower nibbles of reg-
ister ’f’ are exchanged. If ’d’ is 0, the
result is placed in W register. If ’d’ is
1, the result is placed in register ’f’.
1
1
SWAPF
Decode
Q1
0xA5
0xA5
0x5A
00
f
[0,1]
127
REG,
register ’f’
1110
Read
(destination<7:4>),
(destination<3:0>)
Q2
0
Process
dfff
data
Q3
destination
Write to
ffff
Q4
Preliminary
TRIS
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
[ label ] TRIS
5
(W)
None
The instruction is supported for
code compatibility with the
PIC16C5X products. Since TRIS
registers are readable and writ-
able, the user can directly address
them.
Load TRIS Register
1
1
To maintain upward compatibil-
ity with future PIC16CXXX
products, do not use this
instruction.
00
f
2001 Microchip Technology Inc.
7
TRIS register f;
0000
f
0110
0fff

Related parts for PIC16C926-I/CL