PIC18C242 MICROCHIP [Microchip Technology], PIC18C242 Datasheet - Page 193

no-image

PIC18C242

Manufacturer Part Number
PIC18C242
Description
High-Performance Microcontrollers with 10-Bit A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

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

Related parts for PIC18C242