PIC16(L)F722A/723A
28-Pin Flash Microcontrollers with XLP Technology
Devices Included In This Data Sheet:
PIC16F722A/723A Devices:
• PIC16F722A
• PIC16F723A
PIC16LF722A/723A Devices:
• PIC16LF722A
• PIC16LF723A
Extreme Low-Power Management
PIC16LF722A/723A with XLP:
• Sleep Mode: 20 nA
• Watchdog Timer: 500 nA
• Timer1 Oscillator: 600 nA @ 32 kHz
Analog Features:
• A/D Converter:
- 8-bit resolution, 11 channels
- Conversion available during Sleep
- Selectable 1.024/2.048/4.096V voltage
reference
• On-chip 3.2V Regulator (PIC16F722A/723A
devices only)
High-Performance RISC CPU:
• Only 35 Instructions to Learn:
- All single-cycle instructions except branches
• Operating Speed:
- DC – 20 MHz oscillator/clock input
- DC – 200 ns instruction cycle
• Up to 4K x 14 Words of Flash Program Memory
• Up to 192 Bytes of Data Memory (RAM)
• Interrupt Capability
• 8-Level Deep Hardware Stack
• Direct, Indirect and Relative Addressing modes
• Processor Read Access to Program Memory
• Pinout Compatible to other 28-pin PIC16CXXX
and PIC16FXXX Microcontrollers
Peripheral Highlights:
• 25 I/O Pins (1 Input-only Pin):
- High-current source/sink for direct LED drive
- Interrupt-on-pin change
- Individually programmable weak pull ups
• Timer0: 8-Bit Timer/Counter with 8-Bit Prescaler
• Enhanced Timer1:
- Dedicated low-power 32 kHz oscillator
- 16-bit timer/counter with prescaler
- External Gate Input mode with toggle and
single shot modes
- Interrupt-on-gate completion
• Timer2: 8-Bit Timer/Counter with 8-Bit Period
Register, Prescaler and Postscaler
• Two Capture, Compare, PWM (CCP) modules:
- 16-bit Capture, max. resolution 12.5 ns
- 16-bit Compare, max. resolution 200 ns
- 10-bit PWM, max. frequency 20 kHz
• Addressable Universal Synchronous
Asynchronous Receiver Transmitter (AUSART)
• Synchronous Serial Port (SSP):
- SPI (Master/Slave)
- I
2
C (Slave) with Address Mask
• mTouch
®
Sensing Oscillator module:
- Up to eight input channels
Special Microcontroller Features:
• Precision Internal Oscillator:
- 16 MHz or 500 kHz operation
- Factory-calibrated to ±1%, typical
- Software tunable
- Software selectable ÷1, ÷2, ÷4 or ÷8 divider
• 1.8V-5.5V Operation – PIC16F722A/723A
• 1.8V-3.6V Operation – PIC16LF722A/723A
• Power-on Reset (POR), Power-up Timer (PWRT)
and Oscillator Start-up Timer (OST)
• Brown-out Reset (BOR):
- Selectable between two trip points
- Disable in Sleep option
• Programmable Code Protection
• In-Circuit Serial Programming
TM
(ICSP
TM
) via Two
Pins
• Multiplexed Master Clear with Pull-up/Input Pin
• Industrial and Extended Temperature Range
• Power-Saving Sleep mode
2010-2016 Microchip Technology Inc.
DS40001417C-page 1
PIC16(L)F722A/723A
PIC16(L)F72X Family Types
High-Endurance Flash
Memory (bytes)
Program Memory
Flash (words)
Data Sheet Index
CapSense (ch)
8-bit ADC (ch)
SSP (I
2
C/SPI)
Data SRAM
(bytes)
Timers
(8/16-bit)
AUSART
Debug
(1)
I/O’s
(2)
CCP
Device
PIC16(L)F707
(1)
8192
363
0
36 14 32
4/2
1
1
2
PIC16(L)F720
(2)
2048
128
128
18 12 —
2/1
1
1
1
PIC16(L)F721
(2)
4096
256
128
18 12 —
2/1
1
1
1
PIC16(L)F722
(4)
2048
128
0
25 11 8
2/1
1
1
2
PIC16(L)F722A
(3)
2048
128
0
25 11 8
2/1
1
1
2
PIC16(L)F723
(4)
4096
192
0
25 11 8
2/1
1
1
2
PIC16(L)F723A
(3)
4096
192
0
25 11 8
2/1
1
1
2
PIC16(L)F724
(4)
4096
192
0
36 14 16
2/1
1
1
2
PIC16(L)F726
(4)
8192
368
0
25 11 8
2/1
1
1
2
PIC16(L)F727
(4)
8192
368
0
36 14 16
2/1
1
1
2
Note 1:
I - Debugging, Integrated on Chip; H - Debugging, Requires Debug Header.
2:
One pin is input-only.
Data Sheet Index:
(Unshaded devices are described in this document.)
1:
DS41418
PIC16(L)F707 Data Sheet, 40/44-Pin Flash, 8-bit Microcontrollers
2:
DS41430
PIC16(L)F720/721 Data Sheet, 20-Pin Flash, 8-bit Microcontrollers
3:
DS41417
PIC16(L)F722A/723A Data Sheet, 28-Pin Flash, 8-bit Microcontrollers
4:
DS41341
PIC16(L)F72X Data Sheet, 28/40/44-Pin Flash, 8-bit Microcontrollers
I
I
I
I
I
I
I
I
I
I
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
DS40001417C-page 2
2010-2016 Microchip Technology Inc.
XLP
PIC16(L)F722A/723A
Pin Diagrams –
28-PIN SPDIP/SOIC/SSOP/QFN/UQFN (PIC16(L)F722A/723A)
SPDIP, SOIC, SSOP
V
PP
/MCLR/RE3
V
CAP
(3)
/SS
(2)
/AN0/RA0
AN1/RA1
AN2/RA2
V
REF
/AN3/RA3
T0CKI/CPS6/RA4
V
CAP
(3)
/
SS
(2)
/CPS7/AN4/RA5
1
2
3
4
28
27
26
25
RB7/ICSPDAT
RB6/ICSPCLK
RB5/AN13/CPS5/T1G
RB4/AN11/CPS4
RB3/AN9/CPS3/CCP2
(1)
RB2/AN8/CPS2
RB1/AN10/CPS1
RB0/AN12/CPS0/INT
V
DD
V
SS
RC7/RX/DT
RC6/TX/CK
RC5/SDO
RC4/SDI/SDA
6
7
8
9
10
11
12
13
14
PIC16F722A/723A
5
PIC16LF722A/723A
24
23
22
21
20
19
18
17
16
15
V
SS
CLKIN/OSC1/RA7
V
CAP
(3)
/
CLKOUT/OSC2/RA6
T1CKI/T1OSO/RC0
CCP2
(1)
/T1OSI/RC1
CCP1/RC2
SCL/SCK/RC3
RA1/AN1
RA0/AN0/SS
(2)
/V
CAP
(3)
QFN, UQFN
28
27
26
25
24
23
22
RE3/MCLR/V
PP
RB7/ICSPDAT
RB6/ICSPCLK
RB5/AN13/CPS5/T1G
RB4/AN11/CPS4
AN2/RA2
V
REF
/AN3/RA3
T0CKI/CPS6/RA4
(3)
/SS
(2)
/CPS7/AN4/RA5
V
CAP
V
SS
CLKIN/OSC1/RA7
(3)
/CLKOUT/OSC2/RA6
V
CAP
1
2
3
PIC16F722A/723A
4
PIC16LF722A/723A
5
6
7
8
9
10
11
12
13
14
21
20
19
18
17
16
15
RB3/AN9/CPS3/CCP2
(1)
RB2/AN8/CPS2
RB1/AN10/CPS1
RB0/AN12/CPS0/INT
V
DD
V
SS
RC7/RX/DT
T1CKI/T1OSO/RC0
CCP2
(1)
/T1OSI/RC1
2010-2016 Microchip Technology Inc.
Note 1:
CCP2 pin location may be selected as RB3 or RC1.
2:
SS pin location may be selected as RA5 or RA0.
3:
PIC16F722A/723A devices only.
SCL/SCK/RC3
SDA/SDI/RC4
SDO/RC5
CK/TX/RC6
CCP1/RC2
DS40001417C-page 3
PIC16(L)F722A/723A
TABLE 1:
I/O
28-Pin
SPDIP,
SOIC,
SSOP
2
3
4
5
6
7
10
9
21
22
23
24
25
26
27
28
11
12
13
14
15
16
17
18
1
20
8,19
1:
2:
3:
4:
28-PIN SPDIP/SOIC/SSOP/QFN/UQFN SUMMARY (PIC16(L)F722A/723A)
28-Pin
QFN,
UQFN
27
28
1
2
3
4
7
6
18
19
20
21
22
23
24
25
8
9
10
11
12
13
14
15
26
17
5,16
A/D
Cap Sensor
Timers
CCP
AUSART
SSP
Interrupt Pull Up
Basic
RA0
RA1
RA2
RA3
RA4
RA5
RA6
RA7
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7
RC0
RC1
RC2
RC3
RC4
RC5
RC6
RC7
RE3
—
—
Note
AN0
AN1
AN2
AN3/V
REF
—
AN4
—
—
AN12
AN10
AN8
AN9
AN11
AN13
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
CPS6
CPS7
—
—
CPS0
CPS1
CPS2
CPS3
CPS4
CPS5
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
T0CKI
—
—
—
—
—
—
—
—
T1G
—
—
T1OSO/T1CKI
T1OSI
—
—
—
—
—
—
—
—
—
—
—
—
—
CCP2
(2)
—
—
—
—
—
CCP2
(2)
CCP1
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
TX/CK
RX/DT
—
—
—
SS
(3)
—
—
—
—
SS
(3)
—
—
—
—
—
—
—
—
—
—
—
—
—
SCK/SCL
SDI/SDA
SDO
—
—
—
—
—
—
—
—
—
—
—
—
—
IOC/INT
IOC
IOC
IOC
IOC
IOC
IOC
IOC
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
Y
Y
Y
Y
Y
Y
Y
Y
—
—
—
—
—
—
—
—
Y
(1)
—
—
V
CAP
(4)
—
—
—
—
V
CAP
(4)
OSC2/CLKOUT/V
CAP
(4)
OSC1/CLKIN
—
—
—
—
—
—
ICSPCLK/ICDCLK
ICSPDAT/ICDDAT
—
—
—
—
—
—
—
—
MCLR/V
PP
V
DD
V
SS
—
—
—
—
—
—
—
—
—
—
—
—
Pull up enabled only with external MCLR configuration.
RC1 is the default pin location for CCP2. RB3 may be selected by changing the CCP2SEL bit in the APFCON register.
RA5 is the default pin location for SS. RA0 may be selected by changing the SSSEL bit in the APFCON register.
PIC16F722A/723A devices only.
Note:
The PIC16F722A/723A devices have an internal low dropout voltage regulator. An external capacitor must
be connected to one of the available V
CAP
pins to stabilize the regulator. For more information, see
Section 5.0 “Low Dropout (LDO) Voltage Regulator”.
The PIC16LF722A/723A devices do not have the
voltage regulator and therefore no external capacitor is required.
DS40001417C-page 4
2010-2016 Microchip Technology Inc.
PIC16(L)F722A/723A
Table of Contents
1.0 Device Overview ......................................................................................................................................................................... 7
2.0 Memory Organization ................................................................................................................................................................ 11
3.0 Resets ....................................................................................................................................................................................... 23
4.0 Interrupts ................................................................................................................................................................................... 33
5.0 Low Dropout (LDO) Voltage Regulator ..................................................................................................................................... 41
6.0 I/O Ports .................................................................................................................................................................................... 42
7.0 Oscillator Module....................................................................................................................................................................... 71
8.0 Device Configuration .................................................................................................................................................................. 77
9.0 Analog-to-Digital Converter (ADC) Module ............................................................................................................................... 80
10.0 Fixed Voltage Reference........................................................................................................................................................... 90
11.0 Timer0 Module .......................................................................................................................................................................... 91
12.0 Timer1 Module with Gate Control............................................................................................................................................ 103
13.0 Timer2 Module ........................................................................................................................................................................ 115
14.0 Capacitive Sensing Module..................................................................................................................................................... 108
15.0 Capture/Compare/PWM (CCP) Module .................................................................................................................................. 114
16.0 Addressable Universal Synchronous Asynchronous Receiver Transmitter (AUSART) .......................................................... 124
17.0 SSP Module Overview ............................................................................................................................................................ 145
18.0 Program Memory Read ........................................................................................................................................................... 167
19.0 Power-Down Mode (Sleep) ..................................................................................................................................................... 170
20.0 In-Circuit Serial Programming™ (ICSP™) .............................................................................................................................. 172
21.0 Instruction Set Summary ......................................................................................................................................................... 173
22.0 Development Support.............................................................................................................................................................. 182
23.0 Electrical Specifications........................................................................................................................................................... 186
24.0 DC and AC Characteristics Graphs and Charts ...................................................................................................................... 214
25.0 Packaging Information............................................................................................................................................................. 249
Appendix A: Data Sheet Revision History......................................................................................................................................... 261
Appendix B: Migrating From Other PIC
®
Devices............................................................................................................................. 261
The Microchip Website ..................................................................................................................................................................... 262
Customer Change Notification Service ............................................................................................................................................. 262
Customer Support ............................................................................................................................................................................. 262
Product Identification System ............................................................................................................................................................ 263
2010-2016 Microchip Technology Inc.
DS40001417C-page 5