PIC18F2331 MICROCHIP [Microchip Technology], PIC18F2331 Datasheet - Page 291

no-image

PIC18F2331

Manufacturer Part Number
PIC18F2331
Description
28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2331-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2331-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
FIGURE 23-1:
 2003 Microchip Technology Inc.
Byte-oriented file register operations
Byte to Byte move operations (2-word)
Bit-oriented file register operations
Literal operations
Control operations
CALL, GOTO and Branch operations
15
15
15
15
15
15
15
15
15
15
15
OPCODE
OPCODE
OPCODE b (BIT #) a
OPCODE
GENERAL FORMAT FOR INSTRUCTIONS
k = 8-bit immediate value
n = 20-bit immediate value
1111
a =
f = 8-bit file register address
d =
d =
a =
a =
f = 12-bit file register address
b = 3-bit position of bit in file register (f)
a =
f = 8-bit file register address
OPCODE
1111
OPCODE
OPCODE
0
1
0
1
0
1
12 11
12 11
12 11
OPCODE
to force Access Bank
for BSR to select bank
for result destination to be WREG register
for result destination to be file register (f)
to force Access Bank
for BSR to select bank
S = Fast bit
10
12 11
12 11
11 10
d
9
9 8 7
8
8 7
f (Destination FILE #)
n<10:0> (literal)
a
f (Source FILE #)
8 7
n<19:8> (literal)
8 7
7
8 7
S
n<7:0> (literal)
n<19:8> (literal)
PIC18F2331/2431/4331/4431
f (FILE #)
n<7:0> (literal)
k (literal)
n<7:0> (literal)
f (FILE #)
Preliminary
0
0
0
0
0
0
0
0
0
0
0
MOVFF MYREG1, MYREG2
MOVLW 0x7F
BSF MYREG, bit, B
BRA MYFUNC
BC MYFUNC
GOTO Label
CALL MYFUNC
ADDWF MYREG, W, B
Example Instruction
DS39616B-page 289

Related parts for PIC18F2331