PIC18F2439-E/SP Microchip Technology, PIC18F2439-E/SP Datasheet - Page 7
![IC PIC MCU FLASH 6KX16 28DIP](/photos/6/59/65908/150-28-dip_sml.jpg)
PIC18F2439-E/SP
Manufacturer Part Number
PIC18F2439-E/SP
Description
IC PIC MCU FLASH 6KX16 28DIP
Manufacturer
Microchip Technology
Series
PIC® 18Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC18F2439-ISO.pdf
(322 pages)
3.PIC18F2439-ISO.pdf
(6 pages)
4.PIC18F2439-ISO.pdf
(34 pages)
Specifications of PIC18F2439-E/SP
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
21
Program Memory Size
12KB (6K x 16)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
640 x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 5x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
28-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
3.0
3.1
The term, “Blank Check”, means to verify that the
device has no programmed memory cells. All
memories must be verified: code memory, data
EEPROM, ID locations, and configuration bits. The
Device ID registers (3FFFFEh:3FFFFFh) should be
ignored.
A “blank” or “erased” memory cell will read as a ‘1’. So,
“Blank Checking” a device merely means to verify that
all bytes read as FFh, except the configuration bits.
Unused (reserved) configuration bits will read ‘0’
(programmed).
configuration expect data for the various PIC18FXX39
devices.
If it is determined that the device is not blank, then the
device should be Bulk Erased (see Section 3.2) before
any attempt to program is made.
Given that “Blank Checking” is merely code and data
EEPROM verification with FFh expect data, refer to
Section 4.1 and Section 4.3 for implementation details.
FIGURE 3-1:
2010 Microchip Technology Inc.
DEVICE PROGRAMMING
Blank Check
Blank Check Device
Blank Check Device
Bulk Erase Device
device
blank?
device
blank?
Abort
Start
Refer
Is
Is
No
No
BLANK CHECK FLOW
to
Yes
Yes
Table 5-2
Continue
Continue
for
blank
Preliminary
3.2
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 WRITE 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 Table 3-2 and Table 3-3. The corresponding
flowcharts are shown in Figure 3-2 and Figure 3-3.
Erase Data EEPROM
Erase Boot Block
Erase Panel 1
Erase Panel 2 (PIC18FX539 only)
Erase Panel 3 (PIC18FX539 only)
Note:
High Voltage ICSP Bulk Erase
A Bulk Erase is the only way to reprogram
code protect bits from an on state to an off
state.
Description
BULK ERASE OPTIONS
PIC18FXX39
DS30480C-page 7
Data
81h
83h
88h
89h
8Ah