PIC18F2420-I/SP Microchip Technology Inc., PIC18F2420-I/SP Datasheet - Page 376
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC18F2420-I/SP
Manufacturer Part Number
PIC18F2420-I/SP
Description
28 Pin, 16 KB Flash, 768 RAM, 25 I/O
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC18F2420-ISP.pdf
(388 pages)
Specifications of PIC18F2420-I/SP
A/d Inputs
10-Channel, 10-Bit
Comparators
2
Cpu Speed
10 MIPS
Eeprom Memory
256 Bytes
Input Output
25
Interface
I2C/SPI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
28-pin SPDIP
Programmable Memory
16K Bytes
Ram Size
768 Bytes
Speed
40 MHz
Timers
1-8-bit, 3-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part
Electrostatic Device
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2420-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
- Current page: 376 of 388
- Download datasheet (7Mb)
PIC18F2220/2320/4220/4320
C
C Compilers
CALL ................................................................................ 270
Capture (CCP Module) ..................................................... 135
Capture (ECCP Module) .................................................. 142
Capture/Compare/PWM (CCP) ........................................ 133
Clock Sources .................................................................... 24
Clocking Scheme/Instruction Cycle .................................... 57
CLRF ................................................................................ 271
CLRWDT .......................................................................... 271
Code Examples
Code Protection ....................................................... 237, 251
COMF ............................................................................... 272
DS39599C-page 374
MPLAB C17 ............................................................. 300
MPLAB C18 ............................................................. 300
MPLAB C30 ............................................................. 300
Associated Registers ............................................... 137
CCP Pin Configuration ............................................. 135
CCPR1H:CCPR1L Registers ................................... 135
Software Interrupt ..................................................... 135
Timer1/Timer3 Mode Selection ................................ 135
Capture Mode. See Capture.
CCP1 ........................................................................ 134
CCP2 ........................................................................ 134
Compare Mode. See Compare.
Interaction of Two CCP Modules ............................. 134
PWM Mode. See PWM.
Timer Resources ...................................................... 134
Selection Using OSCCON Register ........................... 24
16 x 16 Signed Multiply Routine ................................. 86
16 x 16 Unsigned Multiply Routine ............................. 86
8 x 8 Signed Multiply Routine ..................................... 85
8 x 8 Unsigned Multiply Routine ................................. 85
Changing Between Capture Prescalers ................... 135
Computed GOTO Using an Offset Value ................... 59
Data EEPROM Read ................................................. 83
Data EEPROM Refresh Routine ................................ 84
Data EEPROM Write .................................................. 83
Erasing a Flash Program Memory Row ..................... 76
Fast Register Stack .................................................... 56
How to Clear RAM (Bank 1) Using
Implementing a Real-Time Clock Using a
Initializing PORTA .................................................... 101
Initializing PORTB .................................................... 104
Initializing PORTC .................................................... 107
Initializing PORTD .................................................... 109
Initializing PORTE .................................................... 111
Loading the SSPBUF (SSPSR) Register ................. 158
Reading a Flash Program Memory Word ................... 75
Saving Status, WREG and BSR Registers
Writing to Flash Program Memory ....................... 78–79
CCPR1H Register ............................................ 134
CCPR1L Register ............................................ 134
CCPR2H Register ............................................ 134
CCPR2L Register ............................................ 134
Indirect Addressing ............................................ 66
Timer1 Interrupt Service .................................. 125
in RAM ............................................................... 99
Comparator ...................................................................... 221
Comparator Specifications ............................................... 321
Comparator Voltage Reference ....................................... 227
Compare (CCP Module) .................................................. 136
Compare (ECCP Mode) ................................................... 142
Computed GOTO ............................................................... 59
Configuration Bits ............................................................ 237
Configuration Register Protection .................................... 254
Context Saving During Interrupts ....................................... 99
Control Registers
Conversion Considerations .............................................. 370
CPFSEQ .......................................................................... 272
CPFSGT .......................................................................... 273
CPFSLT ........................................................................... 273
Crystal Oscillator/Ceramic Resonator ................................ 19
D
Data EEPROM Code Protection ...................................... 254
Data EEPROM Memory ..................................................... 81
Data Memory ..................................................................... 59
DAW ................................................................................ 274
DC and AC Characteristics
DC Characteristics ........................................................... 318
DCFSNZ .......................................................................... 275
DECF ............................................................................... 274
DECFSZ .......................................................................... 275
Analog Input Connection Considerations ................ 225
Associated Registers ............................................... 226
Configuration ........................................................... 221
Effects of a Reset .................................................... 225
Interrupts .................................................................. 224
Operation ................................................................. 223
Operation in Power Managed Modes ...................... 225
Outputs .................................................................... 223
Reference ................................................................ 223
Response Time ........................................................ 223
Accuracy and Error .................................................. 228
Associated Registers ............................................... 229
Configuring .............................................................. 227
Connection Considerations ...................................... 228
Effects of a Reset .................................................... 228
Operation in Power Managed Modes ...................... 228
Associated Registers ............................................... 137
CCP Pin Configuration ............................................. 136
CCPR1 Register ...................................................... 136
Software Interrupt .................................................... 136
Special Event Trigger .......................................136, 220
Timer1/Timer3 Mode Selection ................................ 136
EECON1 and EECON2 ............................................. 72
Associated Registers ................................................. 84
EEADR Register ........................................................ 81
EECON1 and EECON2 Registers ............................. 81
Operation During Code-Protect ................................. 84
Protection Against Spurious Write ............................. 83
Reading ..................................................................... 83
Using .......................................................................... 84
Write Verify ................................................................ 83
Writing ........................................................................ 83
General Purpose Registers ....................................... 59
Map for PIC18F2X20/4X20 ........................................ 60
Special Function Registers ........................................ 61
Graphs and Tables .................................................. 343
Power-Down and Supply Current ............................ 309
Supply Voltage ......................................................... 308
2003 Microchip Technology Inc.
Related parts for PIC18F2420-I/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