Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
64-Pin TQFP
TPOUT+
TPOUT-
VDDPLL
VSSPLL
RBIAS
VDDTX
VssTX
RD0
RD1
RD2
RE2
RE3
RE4
RE5
VDD
VSS
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
RE1 1 48 VDDRX
RE0 2 47 TPIN+
RB0 3 46 TPIN-
RB1 4 45 VSSRX
RB2 5 44 RB4
RB3 6 43 RB5
MCLR 7 PIC18F66J60 42 RB6/PGC
RG4 8 41 VSS
PIC18F66J65
VSS 9 40 OSC2
VDDCORE/VCAP 10
PIC18F67J60 39 OSC1
RF7 11 38 VDD
RF6 12 37 RB7/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
ENVREG
RF1
RA3
RA2
RA5
RC1
RC0
RC6
RC7
AVDD
RA1
RA0
VDD
RA4
AVSS
VSS
Note: Bold-faced names indicate the pins that are required for programming. For more information, see Table 2-1.
80-Pin TQFP
TPOUT+
TPOUT-
VDDPLL
VSSPLL
RBIAS
VDDTX
VssTX
RH1
RH0
RD0
RD1
RD2
RE2
RE3
RE4
RE5
RE6
RE7
VDD
VSS
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61
RH2 1 60 VDDRX
RH3 2 59 TPIN+
RE1 3 58 TPIN-
RE0 4 57 VSSRX
RB0 5 56 RG0
RB1 6 55 RG1
RB2 7 54 RB4
RB3 8 53 RB5
MCLR 9 PIC18F86J60 52 RB6/PGC
RG4 10 51 VSS
VSS
PIC18F86J65
11 50 OSC2
VDDCORE/VCAP 12 PIC18F87J60 49 OSC1
RF7 13 48 VDD
RF6 14 47 RB7/PGD
RF5 15 46 RC5
RF4 16 45 RC4
RF3 17 44 RC3
RF2 18 43 RC2
RH7 19 42 RG2
RH6 20 41 RG3
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
RF1
ENVREG
RA3
RA2
RA5
RC1
RC0
RC6
RC7
RJ4
RJ5
RH5
RH4
AVDD
RA1
RA0
VDD
RA4
AVSS
VSS
Note: Bold-faced names indicate the pins that are required for programming. For more information, see Table 2-1.
100-Pin TQFP
TPOUT+
TPOUT-
VDDPLL
VSSPLL
RBIAS
VDDTX
VSSTX
RH1
RH0
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
RE2
RE3
RE4
RE5
RE6
RE7
VDD
VSS
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
RH2 1 75 VDDRX
RH3 2 74 TPIN+
RE1 3 73 TPIN-
RE0 4 72 VSSRX
RB0 5 71 RG0
RB1 6 70 RG1
RB2 7 69 RB4
RB3 8 68 RB5
NC 9 67 RB6/PGC
RG6 10 66 RJ2
RG5 11 65 VSS
PIC18F96J60 OSC2
RF0 12 64
MCLR 13 PIC18F96J65 63 OSC1
RG4 14 62 VDD
PIC18F97J60
VSS 15 61 RJ3
VDDCORE/VCAP 16 60 VSS
VDD 17 59 VDD
RF7 18 58 RJ6
RF6 19 57 RB7/PGD
RF5 20 56 RC5
RF4 21 55 RC4
RF3 22 54 RC3
RF2 23 53 RC2
RH7 24 52 RG2
RH6 25 51 RG3
26
27
39
40
41
42
43
44
45
46
47
48
49
50
28
29
30
31
32
33
34
35
36
37
38
RH5
RH4
RF1
ENVREG
AVDD
RA3
RA2
RA1
RA0
VDD
RG7
RJ7
RA5
RA4
RC1
RC0
RC6
RC7
RJ4
RJ5
RJ0
RJ1
AVSS
VSS
VSS
Note: Bold-faced names indicate the pins that are required for programming. For more information, see Table 2-1.
Unimplemented
Read as ‘0’
Unimplemented
Read as ‘0’
1FFFFFh
200000h
2FFFFFh
Configuration Configuration Configuration 300000h
Words Words Words 300005h
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: Sizes of memory areas are not to scale. Sizes of accessible memory areas are enhanced to show detail.
P13
P20 P12
VIH VIH
MCLR
VDD
Program/Verify Entry Code = 4D434850h
0 1 0 0 1 ... 0 0 0 0
PGD
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
Done
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.
P5
1 2 3 4 1 2 3 4 5 6 15 16 1 2 3 4 1 2 3
PGC P10
P5 P5A
PGD 0 0 0 0 0 1 1 0 0 1 0 1 0 0 0 0 0 0 0
4-Bit Command 16-Bit Data Payload 4-Bit Command Row-Erase Time 16-Bit
Data Payload
PGD = Input
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
No Bytes
Written?
N=1
LoopCount = Yes
LoopCount + 1
Start Write Sequence
and Hold PGC
High Until Done
and Wait P9
No All
Locations
Done?
Yes
Done
FIGURE 3-6: 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 4: Load write buffer. The correct bytes will be selected based on the Table Pointer.
Step 5: Repeat Step 4, for a total of 16 times, to completely rewrite the 1024 bytes of the erase buffer.
Step 6: To continue modifying data, repeat Steps 1 through 4, where the Address Pointer is incremented by 1024 bytes at each
iteration of the loop.
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
Blank?
Set TBLPTR = 0
No
Abort
Does Failure,
No
Word = Expect Report
Data? Error
Yes
All
No
Code Memory
Verified?
Yes
Done
Done
Param
Sym Characteristic Min Max Units Conditions
No.
VDDCORE External Supply Voltage for 2.35 2.70 V (Note 1)
Microcontroller 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 mA @ 3.3V
D090 VOH Output High Voltage 2.4 — V IOH = -8 mA @ 3.3V
D012 CIO Capacitive Loading on I/O pin (PGD) — 50 pF To meet AC specifications
CF Filter Capacitor Value on VCAP 1 — μF Required for controller core
operation when voltage
regulator is enabled
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 if the on-chip voltage
regulator is used. AVDD and AVSS should always be within ±0.3V of VDD and VSS, respectively.
Param
Sym Characteristic Min Max Units Conditions
No.
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 40 — ns
and 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 3.4 — ms
Occur
P10 TDLY6 Delay to allow Row Erase to Occur 49 — ms
P11 TDLY7 Delay to allow Bulk Erase to Occur 475 — ms
P12 THLD2 Input Data Hold Time from MCLR ↑ 400 — μs
P13 TSET2 VDD ↑ Setup Time to MCLR ↑ 100 — ns
P14 TVALID Data Out Valid from PGC ↑ 10 — ns
P16 TDLY8 Delay between Last PGC ↓ and MCLR ↓ 20 — ns
P19 TKEY1 Delay from First MCLR ↓ to First PGC ↑ for 1 — ms
Key Sequence on PGD
P20 TKEY2 Delay from Last PGC ↓ for Key Sequence 40 — ns
on PGD to Second MCLR ↑
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 if the on-chip voltage
regulator is used. AVDD and AVSS should always be within ±0.3V of VDD and VSS, respectively.
• 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 Microchip’s 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 Microchip’s 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