PIC18F6520-I/PT Microchip Technology, PIC18F6520-I/PT Datasheet

IC MCU FLASH 16KX16 EEPROM64TQFP

PIC18F6520-I/PT

Manufacturer Part Number
PIC18F6520-I/PT
Description
IC MCU FLASH 16KX16 EEPROM64TQFP
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F6520-I/PT

Program Memory Type
FLASH
Program Memory Size
32KB (16K x 16)
Package / Case
64-TFQFP
Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
52
Eeprom Size
1K x 8
Ram Size
2K x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 12x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
2 KB
Interface Type
I2C/SPI/USART
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
52
Number Of Timers
5
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, ICE4000, DV164136, DM183032, DM183022
Minimum Operating Temperature
- 40 C
On-chip Adc
12-ch x 10-bit
Package
64TQFP
Device Core
PIC
Family Name
PIC18
Maximum Speed
40 MHz
Operating Supply Voltage
5 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT64PT5 - SOCKET TRAN ICE 64MQFP/TQFPAC164319 - MODULE SKT MPLAB PM3 64TQFPDV007003 - PROGRAMMER UNIVERSAL PROMATE II
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F6520-I/PT
Manufacturer:
MICROCHIP
Quantity:
319
Part Number:
PIC18F6520-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18F6520-I/PT
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC18F6520-I/PT
0
1.0
This
specifications for the following devices:
• PIC18F6520
• PIC18F6620
• PIC18F6720
• PIC18F8520
• PIC18F8620
• PIC18F8720
2.0
PIC18FXX20 devices can be programmed using either
the high voltage In-Circuit Serial Programming
(ICSP
Both of these can be done with the device in the users’
system. The low voltage ICSP method is slightly
different than the high voltage method, and these
differences
programming specification applies to PIC18FXX20
devices in all package types.
TABLE 2-1:
 2010 Microchip Technology Inc.
MCLR/V
V
V
AV
AV
RB5
RB6
RB7
Legend: I = Input, O = Output, P = Power
Note 1: See Section 5.3 for more detail.
DD
SS
Pin Name
DD
SS
(2)
(2)
TM
2: All power supply and ground must be connected.
) method, or the low voltage ICSP method.
document
DEVICE OVERVIEW
PROGRAMMING OVERVIEW
OF THE PIC18FXX20
PP
Flash Microcontroller Programming Specification
/RA5
are
PIN DESCRIPTIONS (DURING PROGRAMMING): PIC18FXX20
noted
Pin Name
SDATA
includes
SCLK
AV
AV
PGM
V
V
V
DD
PP
SS
DD
SS
where
the
Pin Type
applicable.
I/O
P
P
P
P
P
I
I
programming
Programming Enable
Power Supply
Ground
Analog Power Supply
Analog Ground
Low Voltage ICSP™ Input when LVP Configuration bit equals ‘1’
Serial Clock
Serial Data
This
TM
During Programming
2.1
In high voltage ICSP mode, the PIC18FXX20 requires
two programmable power supplies: one for V
one for MCLR/V
minimum resolution of 0.25V. Refer to Section 6.0 for
additional hardware parameters.
2.1.1
In low voltage ICSP mode, the PIC18FXX20 can be
programmed using a V
range. This only means that MCLR/V
to be brought to a different voltage, but can instead be
left at the normal operating voltage. Refer to
Section 6.0 for additional hardware parameters.
2.2
The pin diagrams for the PIC18FXX20 family are
shown in Figure 2-1. The pin descriptions of these
diagrams do not represent the complete functionality of
the device types. Users should refer to the appropriate
device data sheet for complete pin descriptions.
PIC18FXX20
Hardware Requirements
Pin Diagrams
Pin Description
LOW VOLTAGE ICSP
PROGRAMMING
PP
. Both supplies should have a
DD
source in the operating
PP
DS39583C-page 1
does not have
DD
(1)
and

Related parts for PIC18F6520-I/PT

PIC18F6520-I/PT Summary of contents

Page 1

... Flash Microcontroller Programming Specification 1.0 DEVICE OVERVIEW This document includes the specifications for the following devices: • PIC18F6520 • PIC18F6620 • PIC18F6720 • PIC18F8520 • PIC18F8620 • PIC18F8720 2.0 PROGRAMMING OVERVIEW OF THE PIC18FXX20 PIC18FXX20 devices can be programmed using either the high voltage In-Circuit Serial Programming ...

Page 2

... RG3 6 MCLR RG4 RF7 11 RF6 12 RF5 13 RF4 14 RF3 15 RF2 MCLR/V Note: Not all multiplexed pin definitions are shown. Refer to the appropriate data sheet for complete pin descriptions. DS39583C-page PIC18F6520 44 PIC18F6620 43 PIC18F6720 64L TQFP RH2 1 RH3 2 RE1 3 RE0 4 RG0 5 RG1 6 RG2 PIC18F8520 ...

Page 3

... Code Memory 01FFFFh Unimplemented Read as ‘0’ 1FFFFFh Configuration and ID Space 3FFFFFh Note: Sizes of memory areas not to scale.  2010 Microchip Technology Inc. TABLE 2-2: Device PIC18F6520 PIC18F8520 PIC18F6620 PIC18F8620 PIC18F6720 PIC18F8720 MEMORY SIZE / DEVICE 32 Kbytes Address 64 Kbytes (PIC18FX520) Range (PIC18FX620) 000000h ...

Page 4

... ID Location 8 CONFIG1L CONFIG1H CONFIG2L CONFIG2H CONFIG3L CONFIG3H CONFIG4L CONFIG4H CONFIG5L CONFIG5H CONFIG6L CONFIG6H CONFIG7L CONFIG7H Device ID1 Device ID2  2010 Microchip Technology Inc. TBLPTRL Addr[7:0] 200000h 200001h 200002h 200003h 200004h 200005h 200006h 200007h 300000h 300001h 300002h 300003h 300004h 300005h 300006h ...

Page 5

... ENTERING HIGH VOLTAGE PROGRAM/ VERIFY MODE P13 P12 P1 D110 MCLR SDATA SCLK SDATA = Input  2010 Microchip Technology Inc. PIC18FXX20 FIGURE 2-4: HIGH LEVEL PROGRAMMING FLOW Start Perform Bulk Erase Program Memory Program IDs Program Data Verify Program Verify IDs Verify Data ...

Page 6

... Data Payload SDATA = Input COMMANDS FOR PROGRAMMING 4-Bit Description Command 0000 0010 1000 1001 1010 1011 1100 1101 1110 1111 SAMPLE COMMAND SEQUENCE Data Core Instruction Payload 3C 40 Table Write, post-increment P5A Fetch Next 4-bit Command  2010 Microchip Technology Inc. ...

Page 7

... SDATA 4-bit Command 16-bit Data Payload  2010 Microchip Technology Inc. Note: A bulk erase is the only way to reprogram code protect bits from an on-state to an off-state. Non-code protect bits are not returned to default settings by a bulk erase. These bits should be programmed to ones, as out- lined in Section 3.6, " ...

Page 8

... Programming” command, and parameters P9 and P10 is shown in Figure 3-7. Note: The TBLPTR register must contain the same offset value when initiating the pro- gramming sequence as it did when the write buffers were loaded.  2010 Microchip Technology Inc. ...

Page 9

... Step 5: Repeat step 4, with Address Pointer incremented by 64 until all panels are erased. FIGURE 3-4: MULTI-PANEL SINGLE ROW ERASE CODE MEMORY FLOW Addr = Addr + 64  2010 Microchip Technology Inc. Core Instruction BSF EECON1, EEPGD BSF EECON1, CFGS BSF ...

Page 10

... Programming” command, and parameters P9 and P10, is shown in Figure 3-7. Note: The TBLPTR register must contain the same offset value when initiating the pro- gramming sequence as it did when the write buffers were loaded.  2010 Microchip Technology Inc. ...

Page 11

... Offset = TBLPTR<12:3> Panel 1 TBLPTR<21:13> TBLPTR<2:0> TBLPTR<2:0> TBLPTR<2:0> TBLPTR<2:0> TBLPTR<2:0> TBLPTR<2:0> TBLPTR<2:0> TBLPTR<2:0> Offset = TBLPTR<12:3> Note: TBLPTR = TBLPTRU:TBLPTRH:TBLPTRL.  2010 Microchip Technology Inc. PIC18FXX20 Erase Region (64 bytes) Offset = TBLPTR<12:6> Erase Region (64 bytes) Offset = TBLPTR<12:6> Erase Region (64 bytes) Offset = TBLPTR<12:6> Erase Region (64 bytes) Offset = TBLPTR< ...

Page 12

... MOVLW <Addr[15:8]> MOVWF TBLPTRH MOVLW <Addr[7:0]> MOVWF TBLPTRL Write 2 bytes and post-increment address by 2 Write 2 bytes and post-increment address by 2 Write 2 bytes and post-increment address by 2 Write 2 bytes and start programming NOP - hold SCLK high for time P9  2010 Microchip Technology Inc. ...

Page 13

... TABLE WRITE AND START PROGRAMMING INSTRUCTION TIMING (1111 SCLK P5 SDATA 4-bit Command  2010 Microchip Technology Inc. Start LoopCount = 0 Configure Device for Multi-Panel Writes Panel Base Address = (N – 2000h Addr = Panel Base Address + (8 x LoopCount) Load 8 Bytes to Panel N Write Buffer at <Addr> All No ...

Page 14

... The erase will begin on the falling edge of the 4th SCLK, after the WR bit is set. After the erase sequence terminates, SCLK must still be held low for the time specified by parameter #P10 to allow high voltage discharge of the memory array.  2010 Microchip Technology Inc. ...

Page 15

... To continue writing data, repeat step 8, where the Address Pointer is incremented each iteration of the loop.  2010 Microchip Technology Inc. Core Instruction BSF EECON1, EEPGD BSF EECON1, CFGS MOVLW 3Ch MOVWF TBLPTRU MOVLW 00h ...

Page 16

... Start Set Address Set Data Enable Write Unlock Sequence 55h - EECON2 AAh - EECON2 Start Write Sequence No WR bit Clear ? Yes No Done ? Yes Done P10 16-bit Data Payload P5A Shift Out Data (see Figure 4-6) SDATA = Output  2010 Microchip Technology Inc. ...

Page 17

... Step 8: Disable writes. 0000 94 A6 Repeat steps 2 through 8 to write more data. Note 1: See Figure 4-4 for details on Shift Out Data timing.  2010 Microchip Technology Inc. Core Instruction BCF EECON1, EEPGD BCF EECON1, CFGS MOVLW <Addr> MOVWF EEADR MOVLW < ...

Page 18

... MOVLW 00h MOVWF TBLPTRH MOVLW 00h MOVWF TBLPTRL Write 2 bytes and post-increment address by 2 Write 2 bytes and post-increment address by 2 Write 2 bytes and post-increment address by 2 Write 2 bytes and start programming NOP - hold SCLK high for time P9  2010 Microchip Technology Inc. ...

Page 19

... Address Program LSB Delay P9 Time for Write Done  2010 Microchip Technology Inc. 3.6 Configuration Bits Programming Unlike code memory, the configuration bits are programmed a byte at a time. The “Table Write, Begin Programming” 4-bit command (1111) is used, but only 8 bits of the following 16-bit payload will be written. The LSB of the payload will be written to even addresses, and the MSB will be written to odd addresses ...

Page 20

... ID and Configuration registers. Core Instruction MOVLW Addr[21:16] MOVWF TBLPTRU MOVLW <Addr[15:8]> MOVWF TBLPTRH MOVLW <Addr[7:0]> MOVWF TBLPTRL TBLRD *+ P14 3 LSb 1 2 Shift Data Out SDATA = Output P5A 4 MSb Fetch Next 4-bit Command SDATA = Input  2010 Microchip Technology Inc. ...

Page 21

... All No Code Memory Verified? Yes  2010 Microchip Technology Inc. The Table Pointer must be manually set to 200000h (base address of the ID locations), once the code memory has been verified. The post-increment feature of the Table Read 4-bit command may not be used to increment the Table Pointer beyond the code memory space ...

Page 22

... During this time, SCLK must be held low (see Figure 4-4). The command sequence to read a single byte of data is shown in Figure 4-2. DS39583C-page 22 FIGURE 4-3: READ DATA EEPROM FLOW Start Set Address Read Byte Move to TABLAT Shift Out Data No Done ? Yes Done  2010 Microchip Technology Inc. ...

Page 23

... SHIFT OUT DATA HOLDING REGISTER TIMING (0010 SCLK P5 SDATA SDATA = Input  2010 Microchip Technology Inc. Core Instruction BCF EECON1, EEPGD BCF EECON1, CFGS MOVLW <Addr> MOVWF EEADR MOVLW <AddrH> MOVWF EEADRH BSF EECON1, RD MOVF EEDATA MOVWF TABLAT (1) Shift Out Data 9 10 ...

Page 24

... Given that “Blank Checking” is merely code and data EEPROM verification with FFh expect data, refer to Section 4.4 and Section 4.2 for implementation details. FIGURE 4-5: Start Blank Check Device Device Blank? Abort for blank BLANK CHECK FLOW Is Yes Continue No  2010 Microchip Technology Inc. ...

Page 25

... These bits may be used by the programmer to identify what device type is being programmed and read out normally, even after code or read protection. TABLE 5-1: DEVICE ID VALUES Device PIC18F6520 PIC18F6620 PIC18F6720 PIC18F8520 PIC18F8620 PIC18F8720 Note: The ‘x’s in DEVID1 contain the device revision code. ...

Page 26

... STVREN 1000 0101 CP1 CP0 1111 1111 — — 1100 0000 WRT1 WRT0 1111 1111 — — 1110 0000 EBTR1 EBTR0 1111 1111 — — 0100 0000 REV1 REV0 Table 5-1 DEV4 DEV3 Table 5-1  2010 Microchip Technology Inc. ...

Page 27

... CONFIG3L Note 1: Unimplemented in PIC18F6X20 (64-pin) devices; maintain this bit set. 2: Unimplemented in PIC18FX620 devices; maintain this bit set. 3: PIC18F8520/8620 devices only.  2010 Microchip Technology Inc. Description Low Power System Clock Option (Timer1) Enable bit 1 = Disabled 0 = Timer1 oscillator system clock option enabled ...

Page 28

... Code Protection bits (Block Code memory not code protected 0 = Code memory code protected Code Protection bits (Block Code memory not code protected 0 = Code memory code protected Code Protection bits (Block Code memory not code protected 0 = Code memory code protected  2010 Microchip Technology Inc. ...

Page 29

... WRTC CONFIG6H Note 1: Unimplemented in PIC18F6X20 (64-pin) devices; maintain this bit set. 2: Unimplemented in PIC18FX620 devices; maintain this bit set. 3: PIC18F8520/8620 devices only.  2010 Microchip Technology Inc. Description Code Protection bits (Data EEPROM Data EEPROM not code protected 0 = Data EEPROM code protected ...

Page 30

... These bits are used with the DEV2:DEV0 bits in the DEVID1 register to identify part number. Device ID bits These bits are used with the DEV10:DEV3 bits in the DEVID2 register to identify part number. These bits are used to indicate the revision of the device.  2010 Microchip Technology Inc. ...

Page 31

... An option to not include the configuration word information may be provided. When embedding configuration word information in the HEX file, it should start at address 300000h. Microchip Technology Inc. feels strongly that this feature is important for the benefit of the end customer.  2010 Microchip Technology Inc. 5.5 ...

Page 32

... PIC18F6520 SUM(IDs) Boot/ SUM(4000:5FFF)+SUM(6000:7FFF)+(CFGW1L & 0000)+ Block1/ (CFGW1H & ...

Page 33

... Legend: Item Description CFGW = Configuration Word SUM[a:b] = Sum of locations inclusive SUM_ID = Byte-wise sum of lower four bits of all customer ID locations + = Addition & = Bit-wise AND  2010 Microchip Technology Inc. PIC18FXX20 Checksum 0xAA at 0 Blank and Max Value Address 02D8 022E 04AF ...

Page 34

... Description CFGW = Configuration Word SUM[a:b] = Sum of locations inclusive SUM_ID = Byte-wise sum of lower four bits of all customer ID locations + = Addition & = Bit-wise AND DS39583C-page 34 Checksum  2010 Microchip Technology Inc. 0xAA at 0 Blank and Max Value Address 05A8 04FE 077F 0734 857C 8531 ...

Page 35

... Legend: Item Description CFGW = Configuration Word SUM[a:b] = Sum of locations inclusive SUM_ID = Byte-wise sum of lower four bits of all customer ID locations + = Addition & = Bit-wise AND  2010 Microchip Technology Inc. PIC18FXX20 Checksum 0xAA at 0 Blank and Max Value Address 05AA 500 783 ...

Page 36

... Description CFGW = Configuration Word SUM[a:b] = Sum of locations inclusive SUM_ID = Byte-wise sum of lower four bits of all customer ID locations + = Addition & = Bit-wise AND DS39583C-page 36 Checksum  2010 Microchip Technology Inc. 0xAA at 0 Blank and Max Value Address 035B 02B1 052E 04D4 832B 82D1 ...

Page 37

... EEPROM information must be included. An option to not include the data EEPROM information may be provided. When embedding data EEPROM information in the HEX file, it should start at address F00000h. Microchip Technology Inc. believes that this feature is important for the benefit of the end customer.  2010 Microchip Technology Inc. Checksum ...

Page 38

... LP, HS, HS/PLL, and XT modes only) OSC is the Power-up Timer Period, and T PWRT Conditions Normal programming V Bulk erase operations  meet AC specifications s (Note   s ; this can cause spurious program is the Oscillator Period. OSC  2010 Microchip Technology Inc. ...

Page 39

... REAL ICE, rfLAB, Select Mode, Total Endurance, TSHARC, UniWinDriver, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. ...

Page 40

... Fax: 886-3-6578-370 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350  2010 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...

Related keywords