PIC18F2331-E/SP Microchip Technology, PIC18F2331-E/SP Datasheet - Page 293

IC MCU FLASH 4KX16 28-DIP

PIC18F2331-E/SP

Manufacturer Part Number
PIC18F2331-E/SP
Description
IC MCU FLASH 4KX16 28-DIP
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F2331-E/SP

Core Size
8-Bit
Program Memory Size
8KB (4K x 16)
Core Processor
PIC
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, Power Control PWM, QEI, POR, PWM, WDT
Number Of I /o
24
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 5x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
28-DIP (0.300", 7.62mm)
Controller Family/series
PIC18
No. Of I/o's
24
Eeprom Memory Size
256Byte
Ram Memory Size
768Byte
Cpu Speed
40MHz
No. Of Timers
4
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
I3-DB18F4431 - BOARD DAUGHTER ICEPIC3AC164035 - MODULE SKT FOR 18F2X31 28SOICDVA18XP280 - DEVICE ADAPTER 18F2220 PDIP 28LD
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
FIGURE 23-1:
© 2007 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 b (BIT #) a
GENERAL FORMAT FOR INSTRUCTIONS
k = 8-bit immediate value
1111
n = 20-bit immediate value
OPCODE
f = 8-bit file register address
b = 3-bit position of bit in file register (f)
a =
a =
d =
d =
a =
a =
f = 12-bit file register address
f = 8-bit file register address
OPCODE
1111
OPCODE
OPCODE
OPCODE
0
1
0
1
0
1
12 11
12 11
12 11
OPCODE
to force Access 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
for BSR to select bank
S = Fast bit
10
12 11
12 11
11 10
d
9
9 8 7
f (Destination FILE #)
8
8 7
a
f (Source FILE #)
8 7
n<19:8> (literal)
8 7
7
8 7
S
n<19:8> (literal)
n<10:0> (literal)
PIC18F2331/2431/4331/4431
n<7:0> (literal)
n<7:0> (literal)
k (literal)
f (FILE #)
n<7:0> (literal)
f (FILE #)
Preliminary
0
0
0
0
0
0
0
0
0
0
0
ADDWF MYREG, W, B
MOVFF MYREG1, MYREG2
BSF MYREG, bit, B
MOVLW 0x7F
GOTO Label
CALL MYFUNC
BRA MYFUNC
BC MYFUNC
Example Instruction
DS39616C-page 291

Related parts for PIC18F2331-E/SP