Professional Documents
Culture Documents
64-Pin TQFP
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
RE2
RE3
RE4
RE5
RE6
RE7
VDD
VSS
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
RE1 1 48 RB0
RE0 2 47 RB1
RG0 3 46 RB2
RG1 4 45 RB3
RG2 5 44 RB4
RG3 6 43 RB5
MCLR 7 42 RB6/KBI2/PGC
RG4 8 41 VSS
PIC18F6XJXX
VSS 9 40 OSC2
VDDCORE/VCAP 10 39 OSC1
RF7 11 38 VDD
RF6 12 37 RB7/KBI3/PGD
RF5 13 36 RC5
RF4 14 35 RC4
RF3 15 34 RC3
RF2 16 33 RC2
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
AVSS
VSS
RF1/VUSB(1)
ENVREG
AVDD
RA3
RA2
RA1
RA0
VDD
RA5
RA4
RC1
RC0
RC6
RC7
80-Pin TQFP
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
RH0
RH1
RE2
RE3
RE4
RE5
RE6
RE7
VDD
RJ0
RJ1
VSS
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61
RH2 1 60 RJ2
RH3 2 59 RJ3
RE1 3 58 RB0
RE0 4 57 RB1
RG0 5 56 RB2
RG1 6 55 RB3
RG2 7 54 RB4
RG3 8 53 RB5
MCLR 9 52 RB6/KBI2/PGC
RG4 10 51 VSS
VSS
PIC18F8XJXX
11 50 OSC2
VDDCORE/VCAP 12 49 OSC1
RF7 13 48 VDD
RF6 14 47 RB7/KBI3/PGD
RF5 15 46 RC5
RF4 16 45 RC4
RF3 17 44 RC3
RF2 18 43 RC2
RH7 19 42 RJ7
RH6 20 41 RJ6
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
RH5
RH4
RF1/VUSB(1)
ENVREG
AVDD
RA3
RA2
RA1
RA0
VDD
RA5
RA4
RC1
RC0
RC6
RC7
RJ4
RJ5
AVSS
VSS
80-Pin TQFP
SEG31/CCP2(1)/RE7
LCDBIAS3/RE2
COM0/RE3
COM1/RE4
COM2/RE5
COM3/RE6
SEG0/RD0
SEG1/RD1
SEG2/RD2
SEG3/RD3
SEG4/RD4
SEG5/RD5
SEG6/RD6
SEG7/RD7
ARESET
SAVDD
SVDD
SDIA
VDD
VSS
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61
CH0+ 1 60 SDOA
CH0- 2 59 SCKA
LCDBIAS2/RE1 3 58 CSA
LCDBIAS1/RE0 4 57 SEG30/INT0/RB0
LCDBIAS0/RG0 5 56 SEG8/RTCC/INT1/RB1
TX2/CK2/RG1 6 55 SEG9/CTED1/INT2/RB2
VLCAP1/RX2/DT2/RG2 7 54 SEG10/CTED2/INT3/RB3
VLCAP2/RG3 8 53 SEG11/KBI0/RB4
MCLR 9 52 SEG29/KBI1/RB5
SEG26/RG4 PGC/KBI2/RB6
10 PIC18F8XJ72 51
VSS 11 50 VSS
VDDCORE/VCAP 12 49 OSC2/CLKO/RA6
SEG25/AN5/SS/RF7 13 48 OSC1/CLKI/RA7
SEG24/AN11/C1INA/RF6 14 47 VDD
SEG23/AN10/C1INB/CVREF/RF5 15 46 PGD/KBI3/RB7
SEG22/AN9/C2INA/RF4 16 45 SEG12/SDO1/RC5
SEG21/AN8/C2INB/RF3 17 44 SEG16/SDI/SDA/RC4
SEG20/AN7/C1OUT/RF2 18 43 SEG17/SCK/SCL/RC3
CH1- 19 42 SEG13/CCP1/RC2
CH1+ 20 41 CLKIA
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
DR
SEG27/TX1/CK1/RC6
ENVREG
AVDD
AN3/VREF+/RA3
AN2/VREF-/RA2
SEG18/AN1/RA1
AN0/RA0
SEG15/AN4/RA5
T1OSO/T13CLKI/RC0
SEG28/RX1/DT1/RC7
SEG19/AN6/C2OUT/RF1
AVSS
SAVSS
REFIN-
VSS
SEG14/T0CKI/RA4
SEG32/T1OSI/CCP2(1)/RC1
SVSS
REFIN+/OUT
Note 1: The CCP2 pin placement depends on the setting of the CCP2MX configuration bit.
Note: Pinouts are subject to change.
VSS
1FFFFFh
200000h
2FFFFFh
Configuration Configuration Configuration Configuration Configuration 300000h
Words Words Words Words Words 300007h(2)
Memory spaces are unimplemented or unavailable in normal execution mode and read as 0.
Memory spaces are read-only (Device IDs) or cannot be directly programmed by ICSP (Configuration Words).
Note 1: Sizes of memory areas are not to scale. Sizes of accessible memory areas are enhanced to show detail.
2: Configuration Words at 300006h and 300007h are not implemented on PIC18FXXJ10/XXJ15 devices.
2FFFFFh
Configuration Configuration Configuration Configuration Configuration 300000h
Words Words Words Words Words 300007h(2)
3FFFFEh
Device IDs Device IDs Device IDs Device IDs Device IDs 3FFFFFh
Memory spaces are unimplemented or unavailable in normal execution mode and read as 0.
Memory spaces are read-only (Device IDs) or cannot be directly programmed by ICSP (Configuration Words).
Note 1: Sizes of memory areas are not to scale. Sizes of accessible memory areas are enhanced to show detail.
2: Configuration Words at 300006h and 300007h are not implemented on PIC18FXXJ11/XXJ90/XXJ93/XXJ72 devices.
3: PIC18F66J11/67J11/86J11/87J11 memory map is not included in this PIC18FXXJ11/XXJ90/XXJ72 memory map
(see Figure 2-7).
PIC18FX6J50/ PIC18FX7J50/
PIC18FX5J50 X6J11 PIC18FX6J55 X7J11
000000h
Code Memory Code Memory Code Memory Code Memory
1FFFFFh
200000h
2FFFFFh
Configuration Configuration Configuration Configuration 300000h
Words Words Words Words 300007h(2)
3FFFFEh
Device IDs Device IDs Device IDs Device IDs 3FFFFFh
Memory spaces are unimplemented or unavailable in normal execution mode and read as 0.
Memory spaces are read-only (Device IDs) or cannot be directly programmed by ICSP (Configuration Words).
Note 1: Sizes of memory areas are not to scale. Sizes of accessible memory areas are enhanced to show detail.
2: Configuration Words at 300006h and 300007h are not implemented on PIC18F6XJ50/8XJ5X devices.
1FFFFFh
200000h
2FFFFFh
Configuration Configuration Configuration 300000h
Words Words Words 300007h(2)
3FFFFEh
Device IDs Device IDs Device IDs 3FFFFFh
Memory spaces are unimplemented or unavailable in normal execution mode and read as 0.
Memory spaces are read-only (Device IDs) or cannot be directly programmed by ICSP (Configuration Words).
Note 1: Sizes of memory areas are not to scale. Sizes of accessible memory areas are enhanced to show detail.
2: Configuration Words at 300006h and 300007h are not implemented on PIC18F6XJ50/8XJ5X devices.
VDD
Program/Verify Entry Code = 4D434850h
PGD
0 1 0 0 1 ... 0 0 0 0
b31 b30 b29 b28 b27 b3 b2 b1 b0
PGC
P19 P2B
P2A
P4
P3
PGD 1 0 1 1 0 0 0 0 0 0 1 0 0 0 1 1 1 1 0 0 n n n n
0 4 C 3
4-Bit Command 16-Bit Data Payload Fetch Next 4-Bit Command
PGD = Input
P5
1 2 3 4 1 2 15 16 1 2 3 4 1 2 15 16 1 2 3 4 1 2
PGC
P5 P5A P5 P5A P11
PGD 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 n n
4-Bit Command 16-Bit 4-Bit Command 16-Bit 4-Bit Command Erase Time 16-Bit
Data Payload Data Payload Data Payload
PGD = Input
Step 4: Repeat step 3, with Address Pointer incremented by 1024 until all rows are erased.
Step 3: Repeat for all but the last two bytes. Any unused locations should be filled with FFFFh.
To continue writing data, repeat steps 2 through 4, where the Address Pointer is incremented by 2 at each iteration of the loop.
Start
N=1
LoopCount = 0
Configure
Device for
Writes
Load 2 Bytes
N=N+1 to Write
Buffer at <Addr>
All
N=1 No Bytes
LoopCount = Written?
LoopCount + 1
Yes
Start Write Sequence
and Hold PGC
High Until Done
and Wait P9
No All
Locations
Done?
Yes
Done
FIGURE 3-5: TABLE WRITE AND START PROGRAMMING INSTRUCTION TIMING (1111)
P5
1 2 3 4 1 2 3 4 5 6 15 16 1 2 3 4 1 2 3
PGC P9
P5 P5A
PGD 1 1 1 1 n n n n n n n n 0 0 0 0 0 0 0
4-Bit Command 16-Bit Data Payload 4-Bit Command Programming Time 16-Bit
Data Payload
PGD = Input
Step 2: Read memory and then shift out on PGD, LSb to MSb.
1001 00 00 TBLRD *+
1 2 3 4 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 2 3 4
PGC
P5 P6 P5A
P14
Start
Is
Device Yes
Continue
Set TBLPTR = 0 Blank?
No
Abort
Does Failure,
No
Word = Expect Report
Data? Error
Yes
All
No Code Memory
Verified?
Yes
Done
Done
Param
Symbol Characteristic Min Max Units Conditions
No.
VDDCORE External Supply Voltage for Microcontroller 2.3 2.70 V (Note 1)
Core
D111 VDD Supply Voltage During ENVREG = VSS VDDCORE 3.60 V Normal programming (Note 2)
Programming ENVREG = VDD 2.65 3.60
D112 IPP Programming Current on MCLR 5 A
D113 IDDP Supply Current During Programming 10 mA
D031 VIL Input Low Voltage VSS 0.2 VDD V
D041 VIH Input High Voltage 0.8 VDD VDD V
D080 VOL Output Low Voltage 0.4 V IOL = 8.5 mA @ 3.3V
D090 VOH Output High Voltage 2.4 V IOH = -6.0 mA @ 3.3V
D012 CIO Capacitive Loading on I/O pin (PGD) 50 pF To meet AC specifications
CF Filter Capacitor Value on VCAP 4.7 10 F Required for controller core
operation when voltage
regulator is enabled
P2 TPGC Serial Clock (PGC) Period 100 ns
P2A TPGCL Serial Clock (PGC) Low Time 40 ns
P2B TPGCH Serial Clock (PGC) High Time 40 ns
P3 TSET1 Input Data Setup Time to Serial Clock 15 ns
P4 THLD1 Input Data Hold Time from PGC 15 ns
P5 TDLY1 Delay between 4-Bit Command and 40 ns
Command Operand
P5A TDLY1A Delay between 4-Bit Command Operand and 40 ns
Next 4-Bit Command
P6 TDLY2 Delay between Last PGC of Command 20 ns
Byte to First PGC of Read of Data Word
P9 TDLY5 Delay to Allow Block Programming to Occur 3.4 ms For PIC18F87J10,
PIC18F85J90 and
PIC18F85J11 family parts
1.2 ms For PIC18F87J50,
PIC18F87J11, PIC18F87J90,
PIC18F87J93 and
PIC18F87J72 family parts
P10 TDLY6 Delay to Allow Row Erase to Occur 49 ms
P11 TDLY7 Delay to allow Bulk Erase to Occur 475 ms
Note 1: VDDCORE must be supplied to the VDDCORE/VCAP pin if the on-chip voltage regulator is disabled. See
Section 2.1.1 On-Chip Voltage Regulator for more information.
2: VDD must also be supplied to the AVDD pins during programming and to the ENVREG pin if the on-chip voltage
regulator is used. AVDD and AVSS should always be within 0.3V of VDD and VSS, respectively.
Param
Symbol Characteristic Min Max Units Conditions
No.
Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchips Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
Microchip is willing to work with the customer who is concerned about the integrity of their code.
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as unbreakable.
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchips code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
03/26/09