PIC16(L)F1847
18/20/28-Pin Flash Microcontrollers
with XLP Technology
High-Performance RISC CPU:
• C Compiler Optimized Architecture
• 256 bytes Data EEPROM
• Up to 14 Kbytes Linear Program Memory
Addressing
• Up to 1024 bytes Linear Data Memory Addressing
• Interrupt Capability with Automatic Context Saving
• 16-Level Deep Hardware Stack with Optional
Overflow/Underflow Reset
• Direct, Indirect and Relative Addressing modes:
- Two full 16-bit File Select Registers (FSRs)
- FSRs can read program and data memory
Extreme Low-Power Management
PIC16LF1847 with XLP:
•
•
•
•
Sleep mode: 20 nA @ 1.8V, typical
Watchdog Timer: 300 nA @ 1.8V, typical
Timer1 Oscillator: 650 nA @ 32 kHz
Operating Current: 65
A/MHz
@ 1.8V, typical
Analog Features:
• Analog-to-Digital Converter (ADC) module:
- 10-bit resolution, 12 channels
- Auto acquisition capability
- Conversion available during Sleep
• Analog Comparator module:
- Two rail-to-rail analog comparators
- Power mode control
- Software controllable hysteresis
• Voltage Reference module:
- Fixed Voltage Reference (FVR) with 1.024V,
2.048V and 4.096V output levels
- 5-bit rail-to-rail resistive DAC with positive
and negative reference selection
Flexible Oscillator Structure:
• Precision 32 MHz Internal Oscillator Block:
- Factory calibrated to ± 1%, typical
- Software selectable frequencies range of
31 kHz to 32 MHz
• 31 kHz Low-Power Internal Oscillator
• Four Crystal modes up to 32 MHz
• Three External Clock modes up to 32 MHz
• 4X Phase Lock Loop (PLL)
• Fail-Safe Clock Monitor:
- Allows for safe shutdown if peripheral clock
stops
• Two-Speed Oscillator Start-up
• Reference Clock module:
- Programmable clock output frequency and
duty-cycle
Peripheral Highlights:
• 15 I/O Pins and 1 Input Only Pin:
- High current sink/source 25 mA/25 mA
- Programmable weak pull-ups
- Programmable interrupt-on-change pins
• Timer0: 8-Bit Timer/Counter with 8-Bit Prescaler
• Enhanced Timer1:
- 16-bit timer/counter with prescaler
- External Gate Input mode
- Dedicated, low-power 32 kHz oscillator driver
• Up to three Timer2-types: 8-Bit Timer/Counter with
8-Bit Period Register, Prescaler and Postscaler
• Up to two Capture, Compare, PWM (CCP) modules
• Up to two Enhanced CCP (ECCP) modules:
- Software selectable time bases
- Auto-shutdown and auto-restart
- PWM steering
• Up to two Master Synchronous Serial Port
(MSSP) with SPI and I
2
C with:
- 7-bit address masking
- SMBus/PMBus
TM
compatibility
• Enhanced Universal Synchronous Asynchronous
Receiver Transmitter (EUSART) module
• mTouch™ Sensing Oscillator module:
- Up to 12 input channels
• Data Signal Modulator module:
- Selectable modulator and carrier sources
Special Microcontroller Features:
•
•
•
•
•
•
•
•
•
•
•
1.8V-5.5V Operation – PIC16F1847
1.8V-3.6V Operation – PIC16LF1847
Self-Programmable under Software Control
Power-on Reset (POR), Power-up Timer (PWRT)
and Oscillator Start-up Timer (OST)
Programmable Brown-out Reset (BOR)
Extended Watchdog Timer (WDT):
- Programmable period from 1ms to 268s
Programmable Code Protection
In-Circuit Serial Programming™ (ICSP™) via
Two Pins
In-Circuit Debug (ICD) via Two Pins
Enhance Low-Voltage Programming
Power-Saving Sleep mode
2011-2017 Microchip Technology Inc.
DS40001453F-page 1
PIC16(L)F1847
Peripheral Highlights (Continued):
• SR Latch:
- Multiple Set/Reset input options
- Emulates 555 Timer applications
PIC12(L)F1822/1840/PIC16(L)F182X/1847 FAMILY TYPES
ECCP (Full-Bridge)
ECCP (Half-Bridge)
CCP
Program Memory
Flash (words)
Data Sheet Index
10-bit ADC (ch)
MSSP (I
2
C/SPI)
CapSense (ch)
Data EEPROM
(bytes)
Comparators
Data SRAM
(bytes)
SR Latch
Timers
(8/16-bit)
EUSART
Debug
(1)
I/H
I/H
I/H
I/H
I/H
I/H
I/H
I/H
I/H
I/H
I/O’s
(2)
Device
PIC12(L)F1822
(1)
2K
256
128
6
4
4
1
2/1
1
1
0/1/0
Y
PIC12(L)F1840
(2)
4K
256
256
6
4
4
1
2/1
1
1
0/1/0
Y
PIC16(L)F1823
(1)
2K
256
128 12
8
8
2
2/1
1
1
1/0/0
Y
PIC16(L)F1824
(3)
4K
256
256 12
8
8
2
4/1
1
1
1/1/2
Y
PIC16(L)F1825
(4)
8K
256 1024 12
8
8
2
4/1
1
1
1/1/2
Y
PIC16(L)F1826
(5)
2K
256
256 16 12 12
2
2/1
1
1
1/0/0
Y
PIC16(L)F1827
(5)
4K
256
384 16 12 12
2
4/1
1
2
1/1/2
Y
PIC16(L)F1828
(3)
4K
256
256 18 12 12
2
4/1
1
1
1/1/2
Y
PIC16(L)F1829
(4)
8K
256 1024 18 12 12
2
4/1
1
2
1/1/2
Y
PIC16(L)F1847
(6)
8K
256 1024 16 12 12
2
4/1
1
2
1/1/2
Y
Note 1:
I - Debugging, Integrated on Chip; H - Debugging, available using Debug Header.
2:
One pin is input-only.
Data Sheet Index:
(Unshaded devices are described in this document.)
1:
DS41413
PIC12(L)F1822/PIC16(L)F1823 Data Sheet, 8/14-Pin Flash Microcontrollers.
2:
DS41441
PIC12(L)F1840 Data Sheet, 8-Pin Flash Microcontrollers.
3:
DS41419
PIC16(L)F1824/1828 Data Sheet, 28/40/44-Pin Flash Microcontrollers.
4:
DS41440
PIC16(L)F1825/1829 Data Sheet, 14/20-Pin Flash Microcontrollers.
5:
DS41391
PIC16(L)F1826/1827 Data Sheet, 18/20/28-Pin Flash Microcontrollers.
6:
DS41453
PIC16(L)F1847 Data Sheet, 18/20/28-Pin Flash Microcontrollers.
Note:
For other small form-factor package availability and marking information, please visit
http://www.microchip.com/packaging
or contact your local sales office.
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
DS40001453F-page 2
2011-2017 Microchip Technology Inc.
XLP
PIC16(L)F1847
PIN DIAGRAMS
Pin Diagram – 18-Pin PDIP, SOIC
RA2
RA3
RA4
RA5/MCLR/V
PP
V
SS
RB0
RB1
RB2
RB3
1
2
PIC16(L)F1847
3
4
5
6
7
8
9
18
17
16
15
14
13
12
11
10
RA1
RA0
RA7
RA6
V
DD
RB7/ICSPDAT
RB6/ICSPCLK
RB5
RB4
Note:
See
Table 1
for location of all peripheral functions.
Pin Diagram – 20-Pin SSOP
RA2
RA3
RA4
RA5/MCLR/V
PP
V
SS
V
SS
RB0
RB1
RB2
RB3
1
2
PIC16(L)F1847
3
4
5
6
7
8
9
10
20
19
18
17
16
15
14
13
12
11
RA1
RA0
RA7
RA6
V
DD
V
DD
RB7/ICSPDAT
RB6/ICSPCLK
RB5
RB4
Note:
See
Table 1
for location of all peripheral functions.
2011-2017 Microchip Technology Inc.
DS40001453F-page 3
PIC16(L)F1847
Pin Diagram – 28-Pin QFN/UQFN/VQFN
RA1
24
28
27
26
RA5/ MCLR/V
PP
NC
V
SS
NC
V
SS
NC
RB0
1
2
3
4
5
6
7
25
PIC16(L)F1847
11
12
13
RB4
RB3
NC
8
9
10
Note 1:
2:
See
Table 1
for location of all peripheral functions.
It is recommended that the exposed bottom pad be connected to V
SS
.
RB5
NC
RB1
RB2
14
23
22
RA0
NC
21 RA7
20 RA6
19 V
DD
18 NC
17 V
DD
16 RB7/ICSPDAT
15 RB6/ICSPCLK
RA4
RA3
RA2
NC
DS40001453F-page 4
2011-2017 Microchip Technology Inc.
PIC16(L)F1847
PIN ALLOCATION TABLE
TABLE 1:
18-Pin PDIP/SOIC
20-Pin SSOP
18/20/28-PIN SUMMARY (PIC16(L)F1847)
28-Pin QFN/UQFN/VQFN
Comparator
Cap Sense
Reference
Modulator
SR Latch
EUSART
Interrupt
ANSEL
Pull-up
Timers
MSSP
RA0
RA1
RA2
RA3
17
18
1
2
19
20
1
2
23
24
26
27
Y
Y
Y
Y
AN0
AN1
AN2
AN3
—
—
V
REF
-
DACOUT
V
REF
+
CPS0
CPS1
CPS2
CPS3
C12IN0-
C12IN1-
C12IN2-
C12IN+
C12IN3-
C1IN+
C1OUT
C2OUT
—
—
—
—
—
SRQ
—
—
—
—
—
—
—
CCP3
—
—
—
—
SDO2
SS2
—
—
—
—
—
—
—
—
—
—
N
N
N
N
—
—
—
—
RA4
RA5
RA6
3
4
15
3
4
17
28
1
20
Y
N
N
AN4
—
—
—
—
—
CPS4
—
—
SRNQ
—
—
T0CKI
—
—
CCP4
—
P1D
(1)
P2B
(1)
P1C
(1)
CCP2
(1)
P2A
(1)
CCP1
(1)
P1A
(1)
FLT0
—
—
—
—
—
—
SS1
(1)
—
—
—
—
—
—
N
Y
(2)
—
MCLR
V
PP
OSC2
CLKOUT
CLKR
OSC1
CLKIN
—
SDO1
(1)
N
RA7
16
18
21
N
—
—
—
—
—
—
—
—
—
—
N
RB0
6
7
7
N
—
—
—
—
SRI
T1G
—
—
INT
IOC
IOC
IOC
—
Y
RB1
RB2
7
8
8
9
8
9
Y
Y
AN11
AN10
—
—
CPS11
CPS10
—
—
—
—
—
—
RX
(1,3)
DT
(1,3)
RX
(1)
DT
(1)
TX
(1,3)
CK
(1,3)
—
—
TX
(1)
CK
(1)
—
SDA1
SDI1
SDA2
SDI2
SDO1
(1,3)
—
SCL1
SCK1
SCL2
SCK2
SS1
(1,3)
—
—
MDMIN
Y
Y
—
—
RB3
RB4
RB5
9
10
11
10
11
12
10
12
13
Y
Y
Y
AN9
AN8
AN7
—
—
—
CPS9
CPS8
CPS7
—
—
—
—
—
—
—
—
—
CCP1
(1,3)
P1A
(1,3)
—
P1B
IOC
IOC
IOC
MDOUT
MDCIN2
—
Y
Y
Y
—
—
—
RB6
12
13
15
Y
AN5
—
CPS5
—
—
T1CKI
T1OSCI
T1OSCO
—
—
P1C
(1,3)
CCP2
(1,3)
P2A
(1,3)
P1D
(1,3)
P2B
(1,3)
—
—
IOC
—
Y
ICSPCLK
RB7
V
DD
Vss
13
14
5
14
16
Y
—
—
AN6
—
—
—
—
—
CPS6
—
—
—
—
—
—
—
—
—
—
—
—
—
—
IOC
—
—
MDCIN1
—
—
Y
—
—
ICSPDAT
V
DD
V
SS
15, 17,
16 19
5,6 3,5
Note 1:
2:
3:
Pin functions can be moved using the APFCON register(s).
Weak pull-up always enabled when MCLR is enabled, otherwise the pull-up is under user control.
Default function location.
2011-2017 Microchip Technology Inc.
DS40001453F-page 5
Basic
ADC
CCP
I/O