PIC18F2420/2520/4420/4520
FIGURE 1-1:
PIC18F2420/2520 (28-PIN) BLOCK DIAGRAM
Data Bus<8>
Table Pointer<21>
Data Latch
PORTA
8
8
inc/dec logic
21
RA0/AN0
RA1/AN1
Data Memory
( 3.9 Kbytes )
RA2/AN2/VREF-/CVREF
RA3/AN3/VREF+
RA4/T0CKI/C1OUT
RA5/AN4/SS/HLVDIN/C2OUT
OSC2/CLKO(3)/RA6
OSC1/CLKI(3)/RA7
PCLATH
PCLATU
Address Latch
20
PCU PCH PCL
Program Counter
12
Data Address<12>
31-Level Stack
STKPTR
4
BSR
12
FSR0
FSR1
FSR2
4
Address Latch
Access
Bank
Program Memory
(16/32 Kbytes)
12
Data Latch
PORTB
RB0/INT0/FLT0/AN12
RB1/INT1/AN10
RB2/INT2/AN8
inc/dec
logic
8
Table Latch
RB3/AN9/CCP2(1)
RB4/KBI0/AN11
RB5/KBI1/PGM
RB6/KBI2/PGC
RB7/KBI3/PGD
Address
Decode
ROM Latch
IR
Instruction Bus <16>
8
State Machine
Control Signals
Instruction
Decode and
Control
PRODH PRODL
8 x 8 Multiply
PORTC
RC0/T1OSO/T13CKI
RC1/T1OSI/CCP2(1)
RC2/CCP1
3
8
W
BITOP
8
RC3/SCK/SCL
RC4/SDI/SDA
RC5/SDO
8
8
Internal
Oscillator
Block
OSC1(3)
OSC2(3)
T1OSI
Power-up
Timer
RC6/TX/CK
RC7/RX/DT
8
8
Oscillator
Start-up Timer
ALU<8>
8
INTRC
Oscillator
Power-on
Reset
8 MHz
Oscillator
Watchdog
Timer
T1OSO
Precision
Band Gap
Reference
Brown-out
Reset
Fail-Safe
MCLR(2)
VDD, VSS
Single-Supply
Programming
In-Circuit
PORTE
Clock Monitor
MCLR/VPP/RE3(2)
Debugger
Data
EEPROM
BOR
Timer0
CCP2
Timer1
MSSP
Timer2
Timer3
HLVD
ADC
10-Bit
Comparator
CCP1
EUSART
Note 1: CCP2 is multiplexed with RC1 when Configuration bit, CCP2MX, is set, or RB3 when CCP2MX is not set.
2: RE3 is only available when MCLR functionality is disabled.
3: OSC1/CLKI and OSC2/CLKO are only available in select oscillator modes and when these pins are not being used as digital I/O.
Refer to Section 2.0 “Oscillator Configurations” for additional information.
DS39631E-page 10
© 2008 Microchip Technology Inc.