PIC18F2331-E/SP Microchip Technology, PIC18F2331-E/SP Datasheet - Page 392
![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: 392 of 400
- Download datasheet (7Mb)
PIC18F2331/2431/4331/4431
Power-up Timer (PWRT)....................................... 31, 48, 269
Prescaler, Timer0.............................................................. 137
Prescaler, Timer2.............................................................. 158
Program Counter
Program Memory
Program Verification.......................................................... 285
Pulse-Width Measurement Mode...................................... 165
Pulse-Width Modulation. See PWM (CCP Module).
PUSH ................................................................................ 318
PUSH and POP Instructions ............................................... 61
PWM
PWM (CCP Module)
PWM Duty Cycle ............................................................... 195
PWM Period ...................................................................... 193
PWM Time Base
DS39616C-page 390
Assignment (PSA Bit) ............................................... 137
Rate Select (T0PS2:T0PS0 Bits) .............................. 137
PCL Register............................................................... 62
PCLATH Register ....................................................... 62
PCLATU Register ....................................................... 62
Instructions.................................................................. 64
Interrupt Vector ........................................................... 59
Map and Stack
Reset Vector ............................................................... 59
Associated Registers ................................................ 211
Complementary Operation ........................................ 198
Control Registers ...................................................... 184
Dead-Time Generators ............................................. 199
Fault Inputs ............................................................... 207
Functionality .............................................................. 184
Modes
Output and Polarity Control....................................... 206
Output Override ........................................................ 202
Single-Pulse Operation ............................................. 202
Special Event Trigger................................................ 210
Time Base ................................................................. 184
Update Lockout ......................................................... 210
Associated Registers ................................................ 158
CCPR1H:CCPR1L Registers .................................... 157
Duty Cycle................................................................. 157
Example Frequencies/Resolutions ........................... 158
Period........................................................................ 157
PR2 Register, Writing ............................................... 157
Setup for PWM Operation ......................................... 158
TMR2 to PR2 Match ......................................... 145, 157
Center-Aligned .......................................................... 197
Comparison............................................................... 195
Edge-Aligned ............................................................ 196
Register Buffers ........................................................ 196
Registers ................................................................... 195
Interrupts ................................................................... 189
Postscaler ................................................................. 189
Prescaler ................................................................... 188
Two-Word ........................................................... 64
PIC18F2331/4331............................................... 59
PIC18F2431/4431............................................... 59
Continuous Up/Down Count ............................. 188
Free-Running .................................................... 188
Single-Shot ....................................................... 188
Continuous Up/Down Count Mode ................... 190
Double Update Mode ........................................ 192
Free-Running Mode .......................................... 189
Single-Shot Mode ............................................. 190
Preliminary
Q
Q Clock ............................................................................. 158
QEI
Quadrature Encoder Interface (QEI)................................. 169
R
R/W Bit.............................................................. 214, 220, 221
RAM. See Data Memory.
RC Oscillator....................................................................... 25
RCALL .............................................................................. 319
RCON Register
RCSTA Register
Reader Response............................................................. 394
Registers
and IC Shared Interrupts .......................................... 178
Configuration ............................................................ 170
Direction of Rotation ................................................. 171
Interrupts .................................................................. 172
Sampling Modes ....................................................... 171
Velocity Measurement .............................................. 175
RCIO Oscillator Mode................................................. 25
Bit Status During Initialization ..................................... 49
Bits and Positions ....................................................... 49
SPEN Bit................................................................... 223
ADCHS (A/D Channel Select) .................................. 250
ADCON0 (A/D Control 0).......................................... 246
ADCON1 (A/D Control 1).......................................... 247
ADCON2 (A/D Control 2).......................................... 248
ADCON3 (A/D Control 3).......................................... 249
ANSEL0 (Analog Select 0) ....................................... 251
ANSEL1 (Analog Select 1) ....................................... 251
BAUDCTL (Baud Rate Control) ................................ 226
CAPxCON (Input Capture x Control) ........................ 163
CCPxCON (CCPx Control) ....................................... 153
CONFIG1H (Configuration 1 High) ........................... 270
CONFIG2H (Configuration 2 High) ........................... 272
CONFIG2L (Configuration 2 Low) ............................ 271
CONFIG3H (Configuration 3 High) ........................... 274
CONFIG3L (Configuration 3 Low) ............................ 273
CONFIG4L (Configuration 4 Low) ............................ 275
CONFIG5H (Configuration 5 High) ........................... 276
CONFIG5L (Configuration 5 Low) ............................ 276
CONFIG6H (Configuration 6 High) ........................... 277
CONFIG6L (Configuration 6 Low) ............................ 277
CONFIG7H (Configuration 7 High) ........................... 278
CONFIG7L (Configuration 7 Low) ............................ 278
DEVID1 (Device ID 1)............................................... 279
DEVID2 (Device ID 2)............................................... 279
DFLTCON (Digital Filter Control).............................. 177
DTCON (Dead-Time Control) ................................... 200
EECON1 (Flash Program/Data
FLTCONFIG (Fault Configuration)............................ 209
INTCON (Interrupt Control)......................................... 95
INTCON2 (Interrupt Control 2).................................... 96
INTCON3 (Interrupt Control 3).................................... 97
IPR1 (Peripheral Interrupt Priority 1) ........................ 104
IPR2 (Peripheral Interrupt Priority 2) ........................ 105
IPR3 (Peripheral Interrupt Priority 3) ........................ 106
LVDCON (Low-Voltage Detect Control) ................... 265
OSCCON (Oscillator Control) ..................................... 30
OSCTUNE (Oscillator Tuning).................................... 27
OVDCOND (Output Override Control)...................... 204
EEPROM Control 1) ..................................... 79, 88
© 2007 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