PIC18F2420-E/SP Microchip Technology, PIC18F2420-E/SP Datasheet - Page 400
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
PIC18F2420-E/SP
Manufacturer Part Number
PIC18F2420-E/SP
Description
28 PIN, 16 KB STD FLASH, 3804 RAM, 25 I/O, PB FREE,
Manufacturer
Microchip Technology
Series
PIC® 18Fr
Datasheets
1.PIC18F2420-IML.pdf
(412 pages)
2.PIC18F2420-IML.pdf
(16 pages)
3.PIC18F2420-IML.pdf
(8 pages)
4.PIC18F2420-IML.pdf
(6 pages)
5.PIC18F2420-IML.pdf
(8 pages)
6.PIC18F2420-IML.pdf
(4 pages)
Specifications of PIC18F2420-E/SP
Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
25
Program Memory Size
16KB (8K x 16)
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 10x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
28-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
DVA18XP280 - DEVICE ADAPTER 18F2220 PDIP 28LD
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2420-E/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
- PIC18F2420-IML PDF datasheet
- PIC18F2420-IML PDF datasheet #2
- PIC18F2420-IML PDF datasheet #3
- PIC18F2420-IML PDF datasheet #4
- PIC18F2420-IML PDF datasheet #5
- PIC18F2420-IML PDF datasheet #6
- Current page: 400 of 412
- Download datasheet (7Mb)
PIC18F2420/2520/4420/4520
C
C Compilers
CALL ................................................................................. 282
CALLW.............................................................................. 311
Capture (CCP Module)...................................................... 141
Capture (ECCP Module) ................................................... 148
Capture/Compare/PWM (CCP)......................................... 139
Clock Sources ..................................................................... 28
CLRF................................................................................. 283
CLRWDT........................................................................... 283
Code Examples
Code Protection ................................................................ 249
COMF................................................................................ 284
Comparator ....................................................................... 233
DS39631E-page 398
MPLAB C18 .............................................................. 318
MPLAB C30 .............................................................. 318
Associated Registers ................................................ 143
CCP Pin Configuration .............................................. 141
CCPRxH:CCPRxL Registers .................................... 141
Prescaler ................................................................... 141
Software Interrupt ..................................................... 141
Timer1/Timer3 Mode Selection ................................. 141
Capture Mode. See Capture.
CCP Mode and Timer Resources ............................. 140
CCPRxH Register ..................................................... 140
CCPRxL Register...................................................... 140
Compare Mode. See Compare.
Interaction of Two CCP Modules .............................. 140
Module Configuration ................................................ 140
Selecting the 31 kHz Source....................................... 29
Selection Using OSCCON Register ............................ 29
16 x 16 Signed Multiply Routine ................................. 90
16 x 16 Unsigned Multiply Routine ............................. 90
8 x 8 Signed Multiply Routine ..................................... 89
8 x 8 Unsigned Multiply Routine ................................. 89
Changing Between Capture Prescalers .................... 141
Computed GOTO Using an Offset Value .................... 56
Data EEPROM Read .................................................. 85
Data EEPROM Refresh Routine ................................. 86
Data EEPROM Write .................................................. 85
Erasing a Flash Program Memory Row ...................... 78
Fast Register Stack..................................................... 56
How to Clear RAM (Bank 1) Using
Implementing a Real-Time Clock Using
Initializing PORTA..................................................... 105
Initializing PORTB..................................................... 108
Initializing PORTC..................................................... 111
Initializing PORTD..................................................... 114
Initializing PORTE..................................................... 117
Loading the SSPBUF (SSPSR) Register .................. 164
Reading a Flash Program Memory Word ................... 77
Saving STATUS, WREG and BSR
Writing to Flash Program Memory ........................ 80–81
Analog Input Connection Considerations.................. 237
Associated Registers ................................................ 237
Configuration............................................................. 234
Effects of a Reset...................................................... 236
Interrupts................................................................... 236
Operation .................................................................. 235
Operation During Sleep ............................................ 236
Outputs ..................................................................... 235
Reference ................................................................. 235
Indirect Addressing ............................................. 68
a Timer1 Interrupt Service ................................ 131
Registers in RAM .............................................. 103
Comparator Specifications................................................ 338
Comparator Voltage Reference ........................................ 239
Compare (CCP Module) ................................................... 142
Compare (ECCP Module)................................................. 148
Computed GOTO................................................................ 56
Configuration Bits ............................................................. 249
Configuration Register Protection..................................... 266
Context Saving During Interrupts...................................... 103
CPFSEQ ........................................................................... 284
CPFSGT ........................................................................... 285
CPFSLT ............................................................................ 285
Crystal Oscillator/Ceramic Resonator................................. 23
Customer Change Notification Service............................. 407
Customer Notification Service .......................................... 407
Customer Support............................................................. 407
D
Data Addressing Modes ..................................................... 68
Data EEPROM
Data EEPROM Memory...................................................... 83
Data Memory ...................................................................... 59
DAW ................................................................................. 286
DC and AC Characteristics
Response Time......................................................... 235
Accuracy and Error ................................................... 240
Associated Registers ................................................ 241
Configuring ............................................................... 239
Connection Considerations....................................... 240
Effects of a Reset ..................................................... 240
Operation During Sleep ............................................ 240
Associated Registers ................................................ 143
CCPRx Register ....................................................... 142
Pin Configuration ...................................................... 142
Software Interrupt ..................................................... 142
Special Event Trigger ............................... 137, 142, 232
Timer1/Timer3 Mode Selection................................. 142
Special Event Trigger ............................................... 148
Comparing Addressing Modes with the
Direct .......................................................................... 68
Indexed Literal Offset ................................................. 70
Indirect ........................................................................ 68
Inherent and Literal..................................................... 68
Code Protection ........................................................ 266
Associated Registers .................................................. 87
EEADR Register ......................................................... 83
EECON1 and EECON2 Registers .............................. 83
Operation During Code-Protect .................................. 86
Protection Against Spurious Write .............................. 86
Reading ...................................................................... 85
Using .......................................................................... 86
Write Verify ................................................................. 85
Writing ........................................................................ 85
Access Bank............................................................... 62
and the Extended Instruction Set ............................... 70
Bank Select Register (BSR) ....................................... 59
General Purpose Registers ........................................ 62
Map for PIC18F2420/4420 ......................................... 60
Map for PIC18F2520/4520 ......................................... 61
Special Function Registers ......................................... 63
Graphs and Tables ................................................... 361
External Signal ................................................. 235
Internal Signal................................................... 235
Extended Instruction Set Enabled ...................... 71
Instructions Affected ........................................... 70
© 2008 Microchip Technology Inc.
Related parts for PIC18F2420-E/SP
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC18F242-I/SO](/photos/6/59/65909/150-28-soic_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 8KX16 EE A/D 28SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F242-I/SP](/photos/6/59/65908/150-28-dip_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 8KX16 EE A/D 28DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F242](/images/no-image3.png)
Part Number:
Description:
28/40-pin High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![PIC18F242-E/SO](/photos/6/59/65909/150-28-soic_tmb.jpg)
Part Number:
Description:
IC MCU CMOS 40MHZ 8K FLSH 28SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F242-E/SP](/photos/6/59/65908/150-28-dip_tmb.jpg)
Part Number:
Description:
IC MCU CMOS 40MHZ 8K FLASH 28DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F24](/images/no-image3.png)
Part Number:
Description:
28/40-Pin High-Performance, Enhanced Flash Microcontrollers with CAN Module
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: