PIC10F220-E/P Microchip Technology, PIC10F220-E/P Datasheet - Page 14

Microcontroller

PIC10F220-E/P

Manufacturer Part Number
PIC10F220-E/P
Description
Microcontroller
Manufacturer
Microchip Technology
Series
PIC® 10Fr

Specifications of PIC10F220-E/P

Core Processor
PIC
Core Size
8-Bit
Speed
8MHz
Peripherals
POR, WDT
Number Of I /o
3
Program Memory Size
384B (256 x 12)
Program Memory Type
FLASH
Ram Size
16 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 2x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
8-DIP (0.300", 7.62mm)
Processor Series
PIC10F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
16 B
Interface Type
USB
Maximum Clock Frequency
8 MHz
Number Of Programmable I/os
4
Number Of Timers
1
Maximum Operating Temperature
+ 125 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120
Minimum Operating Temperature
- 40 C
On-chip Adc
8 bit, 2 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC162070 - HEADER INTRFC MPLAB ICD2 8/14PAC164037 - MODULE SKT 6L PROMATE II SOT23
Eeprom Size
-
Connectivity
-
Lead Free Status / Rohs Status
 Details
PIC10F220/222
5.0
For the PIC10F220/222, once code protection is
enabled, all program memory locations 0x040-0x0FE
(PIC10F220) and 0x040-x1FE (PIC10F222) inclusive,
read all ‘0’s. Program memory locations 0x000-0x03F,
0x0FF (PIC10F220) and 0x1FF PIC10F222) are
always unprotected. The user ID locations, backup
OSCCAL locations and the Configuration Word read
out in an unprotected fashion. It is possible to program
the user ID locations, backup OSCCAL locations and
the Configuration Word after code-protect is enabled.
5.1
It is recommended that the following procedure be
performed before any other programming is attempted.
It is also possible to turn code protection off (CP = 1)
using this procedure. However, all data within the
program memory will be erased when this
procedure is executed, and thus, the security of the
code is not compromised.
To disable code-protect:
a)
b)
c)
5.2
DS41266C-page 14
Note:
Enter Program mode.
Execute
command (001001).
Wait T
CODE PROTECTION
Disabling Code Protection
Embedding Configuration Word
and User ID Information in the
Hex File
ERA
To allow portability of code, the program-
mer is required to read the Configuration
Word and user ID locations from the hex
file when loading the hex file. If Configura-
tion Word information was not present in
the hex file, then a simple warning
message may be issued. Similarly, while
saving a hex file, the Configuration Word
and user ID information must be included.
An option to not include this information
may be provided.
Microchip Technology Incorporated feels
strongly that this feature is important for
the benefit of the end customer.
.
Bulk
Erase
Program
Memory
5.3
5.3.1
Checksum is calculated by reading the contents of
the PIC10F220/222 memory locations and adding up
the opcodes up to the maximum user addressable
location (e.g., 0x1FF for the PIC10F222). Any Carry
bits exceeding 16 bits are neglected. Finally, the
Configuration Word (appropriately masked) is added
to the checksum. Checksum computation for the
PIC10F220/222 is shown in Table 5-2.
The checksum is calculated by summing the following:
• The contents of all program memory locations
• The Configuration Word, appropriately masked
• Masked user ID locations (when applicable)
The Least Significant 16 bits of this sum is the
checksum.
The following table describes how to calculate the
checksum for each device.
Note:
Checksum Computation
CHECKSUM
The checksum calculation differs depend-
ing on the code-protect setting. The
Configuration Word and user ID locations
can always be read regardless of the
code-protect settings.
© 2007 Microchip Technology Inc.

Related parts for PIC10F220-E/P