PIC18F6620-E/PT Microchip Technology, PIC18F6620-E/PT Datasheet - Page 7
![IC PIC MCU FLASH 32KX16 64TQFP](/photos/6/81/68123/c04-066_pf_sml.jpg)
PIC18F6620-E/PT
Manufacturer Part Number
PIC18F6620-E/PT
Description
IC PIC MCU FLASH 32KX16 64TQFP
Manufacturer
Microchip Technology
Series
PIC® 18Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC18F8520T-IPT.pdf
(380 pages)
3.PIC18F8520T-IPT.pdf
(40 pages)
4.PIC18F6620-IPT.pdf
(14 pages)
5.PIC18F6620-IPT.pdf
(12 pages)
Specifications of PIC18F6620-E/PT
Core Processor
PIC
Core Size
8-Bit
Speed
25MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
52
Program Memory Size
64KB (32K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
3.75K x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 12x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
64-TFQFP
Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
3840 B
Interface Type
I2C, SPI, USART
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
52
Number Of Timers
2 x 8 bit
Operating Supply Voltage
4.2 V to 5.5 V
Maximum Operating Temperature
+ 125 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, DM183022, DM183032
Minimum Operating Temperature
- 40 C
On-chip Adc
12 bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC18F6620-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
3.0
3.1
Erasing Code or Data EEPROM is accomplished by
writing an “erase option” to address 3C0004h. Code
memory may be erased portions at a time, or the user
may erase the entire device in one action. “Bulk Erase”
operations will also clear any code protect settings
associated with the memory block erased. Erase
options are detailed in Table 3-1.
TABLE 3-1:
The actual Bulk Erase function is a self-timed
operation. Once the erase has started (falling edge of
the 4th SCLK after the NOP command), serial execution
will cease until the erase completes (parameter P11).
During this time, SCLK may continue to toggle, but
SDATA must be held low.
The code sequence to erase the entire device is shown
in Figure 3-1 and the flowchart is shown in Figure 3-2.
FIGURE 3-3:
2010 Microchip Technology Inc.
Chip Erase
Erase Data EEPROM
Erase Boot Block
Erase Block 1
Erase Block 2
Erase Block 3
Erase Block 4
Erase Block 5
Erase Block 6
Erase Block 7
Erase Block 8
SCLK
SDATA
DEVICE PROGRAMMING
High Voltage ICSP Bulk Erase
4-bit Command
1
0
2
Description
0
3
1
BULK ERASE OPTIONS
4
1
BULK ERASE TIMING
P5
1
0
Data Payload
2
0
16-bit
15 16
0
0
P5A
4-bit Command
1
0
Data
80h
81h
83h
88h
89h
8Ah
8Bh
8Ch
8Dh
8Eh
8Fh
2
0
3
0
SDATA = Input
4
0
P5
1
0
Data Payload
2
0
16-bit
FIGURE 3-1:
FIGURE 3-2:
Command
Note:
0000
0000
0000
0000
0000
0000
1100
0000
0000
4-Bit
15 16
0
0
P5A
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, "Configuration Bits
Programming".
4-bit Command
1
Payload
0
0E 3C
6E F8
0E 00
6E F7
0E 04
6E F6
00 80
00 00
00 00
Data
2
0
Delay P11+P10
Load Address
Entire Device
3
0
Pointer to
Write 80h
To Erase
3C0004h
PIC18FXX20
4
BULK ERASE COMMAND
SEQUENCE
BULK ERASE FLOW
Done
Time
0
Start
MOVLW 3Ch
MOVWF TBLPTRU
MOVLW 00h
MOVWF TBLPTRH
MOVLW 04h
MOVWF TBLPTRL
Write 80h TO 3C0004h to
erase entire device.
NOP
Hold SDATA low until
erase completes.
Erase Time
Core Instruction
P11
DS39583C-page 7
Data Payload
P10
16-bit
1
n
2
n