PIC18F2331-E/SP Microchip Technology, PIC18F2331-E/SP Datasheet - Page 380
![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: 380 of 392
- Download datasheet (4Mb)
PIC18F2331/2431/4331/4431
CKE Bit.............................................................................. 206
CKP Bit.............................................................................. 207
Clock Sources ..................................................................... 34
Clocking Scheme/Instruction Cycle..................................... 65
CLRF................................................................................. 299
CLRWDT........................................................................... 299
Code Examples
Code Protection ........................................................ 263, 279
COMF................................................................................ 300
Compare (CCP Module).................................................... 147
Configuration Bits.............................................................. 263
Configuration Register Protection ..................................... 282
Conversion Considerations ............................................... 376
CPFSEQ ........................................................................... 300
CPFSGT............................................................................ 301
CPFSLT ............................................................................ 301
Crystal Oscillator/Ceramic Resonators ............................... 29
Customer Change Notification Service ............................. 387
Customer Notification Service........................................... 387
Customer Support ............................................................. 387
DS39616D-page 380
CCP2 ........................................................................ 145
Compare Mode. See Compare.
Timer Resources....................................................... 145
Effects of Power-Managed Modes .............................. 37
Selection Using OSCCON Register ............................ 34
Changing Between Capture Prescalers .................... 146
Computed GOTO Using an Offset Value .................... 64
Data EEPROM Read .................................................. 81
Data EEPROM Refresh Routine ................................. 82
Data EEPROM Write .................................................. 81
Erasing a Flash Program Memory Row ...................... 90
Fast Register Stack..................................................... 64
How to Clear RAM (Bank 1) Using
Implementing a Real-Time Clock Using a
Initializing PORTA ..................................................... 113
Initializing PORTB ..................................................... 116
Initializing PORTC..................................................... 119
Initializing PORTD..................................................... 122
Initializing PORTE ..................................................... 124
Reading a Flash Program Memory Word ................... 89
Saving STATUS, WREG and BSR
Writing to Flash Program Memory ........................ 93–94
16 x 16 Signed Multiply Routine ................................. 96
16 x 16 Unsigned Multiply Routine ............................. 96
8 x 8 Signed Multiply Routine ..................................... 95
8 x 8 Unsigned Multiply Routine ................................. 95
Associated Registers ................................................ 279
Data EEPROM .......................................................... 282
Program Memory ...................................................... 280
Associated Registers ................................................ 148
CCP Pin Configuration .............................................. 147
CCPR1 Register ....................................................... 147
CCPR2 Register ....................................................... 147
Software Interrupt Mode ........................................... 147
Special Event Trigger................................................ 147
Timer1 Mode Selection ............................................. 147
CCPR2H Register............................................. 145
CCPR2L Register ............................................. 145
Indirect Addressing ............................................. 75
Timer1 Interrupt Service ................................... 135
Registers in RAM .............................................. 112
D
D/A Bit............................................................................... 206
Data Addressing Modes ..................................................... 75
Data EEPROM Memory...................................................... 79
Data Memory ...................................................................... 67
DAW ................................................................................. 302
DC Characteristics............................................................ 339
DCFSNZ ........................................................................... 303
DECF ................................................................................ 302
DECFSZ ........................................................................... 303
Development Support ....................................................... 325
Device Differences............................................................ 375
Device Overview................................................................. 11
Device Reset Timers
Direct Addressing ............................................................... 76
E
Electrical Characteristics .................................................. 329
Enhanced Universal Synchronous Asynchronous
Equations
Errata .................................................................................... 9
Direct .......................................................................... 75
Indirect ........................................................................ 75
Inherent and Literal..................................................... 75
Associated Registers .................................................. 83
EEADR Register ......................................................... 79
EECON1 and EECON2 Registers .............................. 79
Operation During Code-Protect .................................. 82
Protection Against Spurious Write .............................. 81
Reading ...................................................................... 81
Using .......................................................................... 82
Write Verify ................................................................. 81
Writing ........................................................................ 81
Access Bank ............................................................... 68
Bank Select Register (BSR) ....................................... 68
General Purpose Register (GPR) File ........................ 68
Map for PIC18F2331/2431/4331/4431 ....................... 67
Special Function Registers (SFRs)............................. 69
Power-Down and Supply Current ............................. 332
Supply Voltage ......................................................... 331
Features (table) .......................................................... 13
New Core Features..................................................... 11
Other Special Features............................................... 12
Oscillator Start-up Timer (OST) .................................. 50
PLL Lock Time-out...................................................... 50
Power-up Timer (PWRT) ............................................ 50
Time-out Sequence .................................................... 50
Receiver Transmitter (EUSART) .............................. 217
A/D Acquisition Time ................................................ 249
Conversion Time for Multi-Channel Modes .............. 254
Minimum A/D Holding Capacitor Charging Time ...... 249
PWM Period for Free-Running Mode ....................... 185
PWM Period for Up/Down Count Mode .................... 185
PWM Resolution ....................................................... 185
16 x 16 Signed Multiplication Algorithm...................... 96
16 x 16 Unsigned Multiplication Algorithm.................. 96
2010 Microchip Technology Inc.
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