PIC18F2331-E/SP Microchip Technology, PIC18F2331-E/SP Datasheet - Page 389
![IC MCU FLASH 4KX16 28-DIP](/photos/6/59/65908/150-28-dip_sml.jpg)
PIC18F2331-E/SP
Manufacturer Part Number
PIC18F2331-E/SP
Description
IC MCU FLASH 4KX16 28-DIP
Manufacturer
Microchip Technology
Series
PIC® 18Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F818-ISO.pdf
(6 pages)
3.PIC18F2331-ISO.pdf
(392 pages)
4.PIC18F2331-ISO.pdf
(8 pages)
5.PIC18F2331-ISO.pdf
(6 pages)
6.PIC18F2331-ISO.pdf
(16 pages)
7.PIC18F4331-EP.pdf
(400 pages)
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
- PIC16F616T-ISL PDF datasheet
- PIC16F818-ISO PDF datasheet #2
- PIC18F2331-ISO PDF datasheet #3
- PIC18F2331-ISO PDF datasheet #4
- PIC18F2331-ISO PDF datasheet #5
- PIC18F2331-ISO PDF datasheet #6
- PIC18F4331-EP PDF datasheet #7
- Current page: 389 of 400
- Download datasheet (7Mb)
Equations
Errata .................................................................................... 7
EUSART
External Clock Input ............................................................ 25
F
Fail-Safe Clock Monitor............................................. 269, 283
Fail-Safe Clock Monitor (FSCM) ....................................... 269
Fast Register Stack............................................................. 62
Flash Program Memory ...................................................... 77
© 2007 Microchip Technology Inc.
A/D Acquisition Time................................................. 255
Conversion Time for Multi-Channel Modes............... 260
Minimum A/D Holding Capacitor
PWM Period for Continuous Up/Down
PWM Period for Free-Running Mode........................ 193
PWM Resolution ....................................................... 193
16 x 16 Signed Multiplication Algorithm ...................... 92
16 x 16 Unsigned Multiplication Algorithm .................. 92
Asynchronous Mode ................................................. 232
Baud Rate Generator (BRG)..................................... 227
Serial Port Enable (SPEN Bit)................................... 223
Synchronous Master Mode ....................................... 239
Synchronous Slave Mode ......................................... 242
Exiting ....................................................................... 283
Interrupts in Power-Managed Modes........................ 284
POR or Wake From Sleep ........................................ 284
WDT During Oscillator Failure .................................. 283
Associated Registers .................................................. 85
Control Registers ........................................................ 78
Erase Sequence ......................................................... 82
Erasing........................................................................ 82
Operation During Code-Protect .................................. 85
Reading....................................................................... 81
TABLAT Register ........................................................ 80
Table Pointer............................................................... 80
Table Pointer Boundaries ........................................... 80
Table Reads and Table Writes ................................... 77
Charging Time .................................................. 255
Count Mode ...................................................... 193
Associated Registers, Receive ......................... 236
Associated Registers, Transmit ........................ 234
Auto-Wake-up on Sync Break .......................... 237
Receiver............................................................ 235
Receiving a Break Character ............................ 238
Setting Up 9-Bit Mode with
Transmitter........................................................ 232
12-Bit Break Character Sequence .................... 238
Associated Registers ........................................ 228
Auto-Baud Rate Detect ..................................... 231
Baud Rate Error, Calculating ............................ 228
Baud Rates, Asynchronous Modes .................. 228
High Baud Rate Select (BRGH Bit) .................. 227
Power-Managed Mode Operation..................... 227
Sampling ........................................................... 227
Associated Registers, Receive ......................... 241
Associated Registers, Transmit ........................ 240
Reception.......................................................... 241
Transmission .................................................... 239
Associated Registers, Receive ......................... 243
Associated Registers, Transmit ........................ 242
Reception.......................................................... 243
Boundaries Based on Operation......................... 80
Address Detect ......................................... 235
PIC18F2331/2431/4331/4431
Preliminary
FSCM. See Fail-Safe Clock Monitor.
G
GOTO ............................................................................... 310
H
Hardware Multiplier............................................................. 91
HSPLL ................................................................................ 24
I
I/O Ports ........................................................................... 109
ID Locations.............................................................. 269, 288
INCF ................................................................................. 310
INCFSZ............................................................................. 311
In-Circuit Debugger........................................................... 288
In-Circuit Serial Programming (ICSP)....................... 269, 288
Independent PWM Mode .................................................. 201
Indirect Addressing
Indirect Addressing Operation ............................................ 74
Indirect File Operand .......................................................... 65
INFSNZ............................................................................. 311
Initialization Conditions for All Registers....................... 50–55
Input Capture .................................................................... 161
Instruction Flow/Pipelining .................................................. 63
Instruction Set
Unexpected Termination of Write
Write Sequence .......................................................... 83
Write Verify ................................................................. 85
Writing ........................................................................ 83
Introduction................................................................. 91
Operation.................................................................... 91
Performance Comparison........................................... 91
Duty Cycle Assignment ............................................ 201
INDF and FSR Registers ............................................ 73
Operation.................................................................... 73
Entering and Capture Timing.................................... 167
State Change............................................................ 166
Time Base Reset Summary...................................... 168
ADDLW..................................................................... 295
ADDWF .................................................................... 295
ADDWFC.................................................................. 296
ANDLW..................................................................... 296
ANDWF .................................................................... 297
BC............................................................................. 297
BCF .......................................................................... 298
BN............................................................................. 298
BNC .......................................................................... 299
BNN .......................................................................... 299
BNOV ....................................................................... 300
BNZ .......................................................................... 300
BOV .......................................................................... 303
BRA .......................................................................... 301
BSF........................................................................... 301
BTFSC...................................................................... 302
BTFSS ...................................................................... 302
BTG .......................................................................... 303
BZ ............................................................................. 304
CALL......................................................................... 304
CLRF ........................................................................ 305
CLRWDT .................................................................. 305
COMF ....................................................................... 306
CPFSEQ ................................................................... 306
CPFSGT ................................................................... 307
CPFSLT.................................................................... 307
DAW ......................................................................... 308
Operation............................................................ 85
DS39616C-page 387
Related parts for PIC18F2331-E/SP
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC18F-LF1XK50](/images/no-image3.png)
Part Number:
Description:
20-Pin USB Flash Microcontrollers
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![PIC18F6393T-I/PT](/photos/6/81/68123/c04-066_pf_tmb.jpg)
Part Number:
Description:
PIC18F With 128-segment LCD Driver And 12-bit ADC, 8KB Flash, 768B RAM, CCP, MSS
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F6493T-I/PT](/photos/6/81/68123/c04-066_pf_tmb.jpg)
Part Number:
Description:
PIC18F With 128-segment LCD Driver And 12-bit ADC, 16KB Flash, 768B RAM, CCP, MS
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F8393T-I/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
PIC18F With 192-segment LCD Driver And 12-bit ADC, 8KB Flash, 768B RAM, CCP, MSS
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F8493T-I/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
PIC18F With 192-segment LCD Driver And 12-bit ADC, 16KB Flash, 768B RAM, CCP, MS
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F6585-I/L](/photos/16/12/161282/68-plcc-large-300dpi-lyrd_tmb.jpg)
Part Number:
Description:
Microcontrollers (MCU) 48KB 3328 RAM 52 I/O
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F6680-I/L](/photos/16/12/161282/68-plcc-large-300dpi-lyrd_tmb.jpg)
Part Number:
Description:
Microcontrollers (MCU) 64KB 3328 RAM 52 I/O
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F65K90T-I/MR](/photos/16/3/160368/qfn64_tmb.jpg)
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 QFN 9x9x0.9mm T/R
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F65K90T-I/PT](/photos/16/3/160367/tqfp-64_tmb.jpg)
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 TQFP 10x10x1mm T/R
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F87K90T-I/PT](/photos/40/31/403173/tqfp-80_tmb.jpg)
Part Number:
Description:
128kB Flash, 4kB RAM, 1kB EE, 16MIPS, NanoWatt XLP, LCD, 5V 80 TQFP 12x12x1mm T/
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F65K90-I/MR](/photos/16/3/160368/qfn64_tmb.jpg)
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 QFN 9x9x0.9mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F65K90-I/PT](/photos/16/3/160367/tqfp-64_tmb.jpg)
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 TQFP 10x10x1mm TRAY
Manufacturer:
Microchip Technology
![PIC18F87K90-I/PT](/photos/40/31/403173/tqfp-80_tmb.jpg)
Part Number:
Description:
128kB Flash, 4kB RAM, 1kB EE, 16MIPS, NanoWatt XLP, LCD, 5V 80 TQFP 12x12x1mm TR
Manufacturer:
Microchip Technology