PIC10(L)F320/322
Data Sheet
6/8-Pin, High-Performance,
Flash Microcontrollers
2011 Microchip Technology Inc.
Preliminary
DS41585A
Note the following details of the code protection feature on Microchip devices:
•
•
•
Microchip products meet the specification contained in their particular Microchip Data Sheet.
Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
Microchip is willing to work with the customer who is concerned about the integrity of their code.
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
•
•
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
K
EE
L
OQ
, K
EE
L
OQ
logo, MPLAB, PIC, PICmicro, PICSTART,
PIC
32
logo, rfPIC and UNI/O are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL and The Embedded Control
Solutions Company are registered trademarks of Microchip
Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, chipKIT,
chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net,
dsPICworks, dsSPEAK, ECAN, ECONOMONITOR,
FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP,
Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB,
MPLINK, mTouch, Omniscient Code Generation, PICC,
PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, 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.
© 2011, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
ISBN: 978-1-61341-380-7
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
®
MCUs and dsPIC
®
DSCs, K
EE
L
OQ
®
code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
DS41585A-page 2
Preliminary
2011 Microchip Technology Inc.
PIC10(L)F320/322
6/8-Pin Flash-Based, 8-Bit Microcontrollers
High-Performance RISC CPU:
• Only 35 Instructions to Learn:
- All single-cycle instructions, except branches
• Operating Speed:
- DC – 16 MHz clock input
- DC – 250 ns instruction cycle
• Up to 512 Words of Flash Program Memory
• 64 Bytes Data Memory
• Eight-level Deep Hardware Stack
• Interrupt Capability
• Processor Self-Write/Read access to Program
Memory
• Pinout Compatible to other 6-Pin PIC10FXXX
Microcontrollers
Low-Power Features (PIC10LF320/322):
• Standby Current:
- 20 nA @ 1.8V, typical
• Operating Current:
- 25
A
@ 1 MHz, 1.8V, typical
• Watchdog Timer Current:
- 500 nA @ 1.8V, typical
Peripheral Features:
• 4 I/O Pins:
- 1 input-only pin
- High current sink/source for LED drivers
- Individually selectable weak pull-ups
- Interrupt-on-Change
• Timer0: 8-Bit Timer/Counter with 8-Bit
Programmable Prescaler
• Timer2: 8-Bit Timer/Counter with 8-Bit Period
Register, Prescaler and Postscaler
• Two PWM modules:
- 10-bit PWM, max. frequency 16 kHz
- Combined to single 2-phase output
• A/D Converter:
- 8-bit resolution with 3 channels
• Configurable Logic Cell (CLC):
- 8 selectable input source signals
- Two inputs per module
- Software selectable logic functions including:
AND/OR/XOR/D Flop/D Latch/SR/JK
- External or internal inputs/outputs
- Operation while in Sleep
• Numerically Controlled Oscillator (NCO):
- 20-bit accumulator
- 16-bit increment
- Linear frequency control
- High-speed clock input
- Selectable Output modes
- Fixed Duty Cycle (FDC)
- Pulse Frequency (PF) mode
• Complementary Waveform Generator (CWG):
- Selectable falling and rising edge dead-band
control
- Polarity control
- 2 auto-shutdown sources
- Multiple input sources: PWM, CLC, NCO
Special Microcontroller Features:
• Low-Power 16 MHz Internal Oscillator:
- Software selectable frequency range from
16 MHz to 31 kHz
- Factory calibrated to
1%, typical
• Wide Operating Range:
- 1.8V to 3.6V (PIC10LF320/322)
- 2.3V to 5.5V (PIC10F320/322)
• Power-on Reset (POR)
• Power-up Timer (PWRT)
• Brown-out Reset (BOR)
• Ultra Low-Power Sleep Regulator
• Extended Watchdog Timer (WDT)
• Programmable Code Protection
• Power-Saving Sleep mode
• Selectable Oscillator options (EC mode or Internal
Oscillator)
• In-Circuit Serial Programming™ (ICSP™) (via
Two Pins)
• In-Circuit Debugger Support
• Fixed Voltage Reference (FVR) with 1.024V,
2.048V and 4.096V (‘F’ variant only) Output
Levels
• Integrated Temperature Indicator
• 40-year Flash Data Retention
2011 Microchip Technology Inc.
Preliminary
DS41585A-page 3
PIC10(L)F320/322
TABLE 1:
Device
PIC10(L)F320/322 FEATURE SUMMARY
Program
Memory
Flash
(words)
256
256
512
512
SRAM
(bytes)
64
64
64
64
I/O
(1)
8-bit A/D (ch) CLC
10-bit
PWM
2
2
2
2
Timers
8-bit
2
2
2
2
NCO
CWG
PIC10F320
PIC10LF320
PIC10F322
PIC10LF322
4
4
4
4
3
3
3
3
1
1
1
1
1
1
1
1
1
1
1
1
Note 1:
One pin is input-only.
FIGURE 1:
SOT-23
6-PIN DIAGRAM, PIC10(L)F320/322
ICSPDAT/RA0
V
SS
ICSPCLK/RA1
1
2
3
PIC10(L)F320
PIC10(L)F322
6
5
4
RA3/MCLR/V
PP
V
DD
RA2
FIGURE 2:
PDIP, DFN
8-PIN DIAGRAM, PIC10(L)F320/322
N/C
V
DD
RA2
ICSPCLK/RA1
1
2
3
4
PIC10(L)F320
PIC10(L)F322
8
7
6
5
RA3/MCLR/V
PP
V
SS
N/C
RA0/ICSPDAT
TABLE 2:
I/O
RA0
RA1
RA2
RA3
N/C
N/C
V
DD
V
SS
1
3
4
6
—
—
5
2
6 AND 8-PIN ALLOCATION TABLE (PIC10(L)F320/322)
PWM
PWM1
PWM2
—
—
—
—
—
—
Interrupts Pull-ups
IOC0
IOC1
INT/IOC2
IOC3
—
—
—
—
Y
Y
Y
Y
—
—
—
—
CWG
CWG1A
CWG1B
CWG1FLT
—
—
—
—
—
NCO
—
NCO1CLK
NCO1
—
—
—
—
—
CLC
CLC1IN1
CLC1
CLC1IN2
—
—
—
—
—
Basic
—
CLKIN
CLKR
MCLR
—
—
V
DD
V
SS
V
PP
—
—
—
—
ICSP
ICSPDAT
ICSPCLK
5
4
3
8
1
6
2
7
AN0
AN1
AN2
—
—
—
—
—
—
—
T0CKI
—
—
—
—
—
6-Pin 8-Pin Analog Timer
DS41585A-page 4
Preliminary
2011 Microchip Technology Inc.
PIC10(L)F320/322
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 7
2.0 Memory Organization ................................................................................................................................................................. 11
3.0 Device Configuration .................................................................................................................................................................. 21
4.0 Oscillator Module........................................................................................................................................................................ 27
5.0 Resets ........................................................................................................................................................................................ 33
6.0 Interrupts .................................................................................................................................................................................... 41
7.0 Power-Down Mode (Sleep) ........................................................................................................................................................ 51
8.0 Watchdog Timer (WDT) ............................................................................................................................................................. 53
9.0 Flash Program Memory Control ................................................................................................................................................. 57
10.0 I/O Port ....................................................................................................................................................................................... 75
11.0 Interrupt-On-Change .................................................................................................................................................................. 81
12.0 Fixed Voltage Reference (FVR) ................................................................................................................................................. 85
13.0 Internal Voltage Regulator (IVR) ................................................................................................................................................ 87
14.0 Temperature Indicator Module ................................................................................................................................................... 89
15.0 Analog-to-Digital Converter (ADC) Module ................................................................................................................................ 91
16.0 Timer0 Module ......................................................................................................................................................................... 101
17.0 Timer2 Module ......................................................................................................................................................................... 105
18.0 Pulse Width Modulation (PWM) Module................................................................................................................................... 107
19.0 Configurable Cell Logic (CLC).................................................................................................................................................. 113
20.0 Numerically Controlled Oscillator (NCO) Module ..................................................................................................................... 129
21.0 Complementary Waveform Generator (CWG) Module ............................................................................................................ 139
22.0 In-Circuit Serial Programming™ (ICSP™) ............................................................................................................................... 155
23.0 Instruction Set Summary .......................................................................................................................................................... 159
24.0 Electrical Specifications............................................................................................................................................................ 169
25.0 DC and AC Characteristics Graphs and Charts ....................................................................................................................... 187
26.0 Development Support............................................................................................................................................................... 189
27.0 Packaging Information.............................................................................................................................................................. 193
Appendix A: Data Sheet Revision History.......................................................................................................................................... 201
Index .................................................................................................................................................................................................. 203
The Microchip Web Site ..................................................................................................................................................................... 207
Customer Change Notification Service .............................................................................................................................................. 207
Customer Support .............................................................................................................................................................................. 207
Reader Response .............................................................................................................................................................................. 208
Product Identification System ............................................................................................................................................................ 209
2011 Microchip Technology Inc.
Preliminary
DS41585A-page 5