PIC10F222 Microchip Technology Inc., PIC10F222 Datasheet - Page 39

no-image

PIC10F222

Manufacturer Part Number
PIC10F222
Description
High-performance Microcontrollers With 8-bit A/d
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC10F222-I/MC
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC10F222-I/P
Manufacturer:
Microchip
Quantity:
1 297
Part Number:
PIC10F222-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC10F222T-E/OT
Manufacturer:
NEC
Quantity:
6 000
Part Number:
PIC10F222T-E/OTVAO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC10F222T-I/OT
Manufacturer:
Microchip Technology
Quantity:
26 846
Part Number:
PIC10F222T-I/OT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC10F222T-I/OT
0
8.9.2
The device can wake-up from Sleep through one of the
following events:
1.
2.
3.
These events cause a device Reset. The TO, PD
GPWUF bits can be used to determine the cause of a
device Reset. The TO bit is cleared if a WDT time-out
occurred (and caused wake-up). The PD bit, which is
set on power-up, is cleared when SLEEP is invoked.
The GPWUF bit indicates a change in state while in
Sleep at pins GP0, GP1 or GP3 (since the last file or bit
operation on GP port).
8.10
If the Code Protection bit has not been programmed,
the on-chip program memory can be read out for
verification purposes.
The first 64 locations and the last location (Reset
Vector) can be read, regardless of the code protection
bit setting.
8.11
Four memory locations are designated as ID locations
where the user can store checksum or other code
identification numbers. These locations are not
accessible during normal execution, but are readable
and writable during program/verify.
Use only the lower 4 bits of the ID locations and always
program the upper 8 bits as ‘1’s.
© 2007 Microchip Technology Inc.
Caution: Right before entering Sleep, read the
Note:
An external Reset input on GP3/MCLR/V
when configured as MCLR.
A Watchdog Timer Time-out Reset (if WDT was
enabled).
A change on input pin GP0, GP1 or GP3 when
wake-up on change is enabled.
Program Verification/Code
Protection
ID Locations
WAKE-UP FROM SLEEP
The WDT is cleared when the device
wakes from Sleep, regardless of the wake-
up source.
input pins. When in Sleep, wake up
occurs when the values at the pins
change from the state they were in at the
last reading. If a wake-up on change
occurs and the pins are not read before
re-entering Sleep, a wake-up will occur
immediately even if no pins change
while in Sleep mode.
PP
pin,
8.12
The PIC10F220/222 microcontrollers can be serially
programmed while in the end application circuit. This is
simply done with two lines for clock and data, and three
other lines for power, ground and the programming
voltage. This allows customers to manufacture boards
with unprogrammed devices and then program the
microcontroller just before shipping the product. This
also allows the most recent firmware, or a custom
firmware, to be programmed.
The devices are placed into a Program/Verify mode by
holding the GP1 and GP0 pins low while raising the
MCLR (V
specification). GP1 becomes the programming clock
and GP0 becomes the programming data. Both GP1
and GP0 are Schmitt Trigger inputs in this mode.
After Reset, a 6-bit command is then supplied to the
device. Depending on the command, 16 bits of program
data are then supplied to or from the device, depending
if the command was a Load or a Read. For complete
details of serial programming, please refer to the
PIC10F220/222 Programming Specifications.
A typical In-Circuit Serial Programming connection is
shown in Figure 8-10.
FIGURE 8-10:
External
Connector
Signals
Data I/O
CLK
+5V
V
0V
In-Circuit Serial Programming™
PP
PP
) pin from V
PIC10F220/222
To Normal
Connections
To Normal
Connections
TYPICAL IN-CIRCUIT
SERIAL
PROGRAMMING™
CONNECTION
IL
to V
IHH
(see programming
V
V
MCLR/V
GP1
GP0
V
DS41270E-page 41
DD
SS
DD
PIC10F22X
PP

Related parts for PIC10F222