PIC16(L)F18326/18346
Full-Featured, 14/20 Low Pin Count Microcontrollers with XLP
Description
PIC16(L)F18326/18346 microcontrollers feature Analog, Core Independent Peripherals and Communication
Peripherals, combined with eXtreme Low Power (XLP) for a wide range of general purpose and low-power applications.
The Peripheral Pin Select (PPS) functionality enables pin mapping when using the digital peripherals (CLC, CWG, CCP,
PWM and communications) to add flexibility to the application design.
Core Features
• C Compiler Optimized RISC Architecture
• Operating Speed:
- DC – 32 MHz clock input
- 125 ns minimum instruction cycle
• Interrupt Capability
• 16-Level Deep Hardware Stack
• Up to Four 8-bit Timers
• Up to Three 16-bit Timers
• Low-Current Power-on Reset (POR)
• Power-up Timer (PWRTE)
• Brown-out Reset (BOR) Option
• Low-Power BOR (LPBOR) Option
• Extended Watchdog Timer (WDT) with Dedicated
On-Chip Oscillator for Reliable Operation
• Programmable Code Protection
Power-Saving Functionality
• IDLE mode: ability to put the CPU core to Sleep
while internal peripherals continue operating from
the system clock
• DOZE mode: ability to run the CPU core slower
than the system clock used by the internal
peripherals
• SLEEP mode: Lowest Power Consumption
• Peripheral Module Disable (PMD): peripheral
power disable hardware module to minimize
power consumption of unused peripherals
Digital Peripherals
• Configurable Logic Cell (CLC):
- Four CLCs
- Integrated combinational and sequential logic
• Complementary Waveform Generator (CWG):
- Two CWGs
- Rising and falling edge dead-band control
- Full-bridge, half-bridge, 1-channel drive
- Multiple signal sources
• Capture/Compare/PWM (CCP) modules:
- Four CCPs
- 16-bit resolution for Capture/Compare modes
- 10-bit resolution for PWM mode
• Pulse-Width Modulators (PWM):
- Two 10-bit PWMs
• Numerically Controlled Oscillator (NCO):
- Precision linear frequency generator (@50%
duty cycle) with 0.0001% step size of source
input clock
- Input Clock: 0 Hz < F
NCO
< 32 MHz
- Resolution: F
NCO
/2
20
• Serial Communications:
- EUSART
- RS-232, RS-485, LIN compatible
- Auto-Baud Detect, auto-wake-up on start
- Master Synchronous Serial Port (MSSP)
- SPI
- I
2
C, SMBus, PMBus™ compatible
• Data Signal Modulator (DSM):
- Modulates a carrier signal with digital data to
create custom carrier synchronized output
waveforms
Memory
•
•
•
•
28 Kbytes Program Flash Memory
2 KB Data SRAM Memory
256B of EEPROM
Direct, Indirect and Relative Addressing Modes
Operating Characteristics
• Operating Voltage Range:
- 1.8V to 3.6V (PIC16LF18326/18346)
- 2.3V to 5.5V (PIC16F18326/18346)
• Temperature Range:
- Industrial: -40°C to 85°C
- Extended: -40°C to 125°C
eXtreme Low-Power (XLP) Features
•
•
•
•
Sleep mode: 40 nA @ 1.8V, typical
Watchdog Timer: 250 nA @ 1.8V, typical
Secondary Oscillator: 300 nA @ 32 kHz
Operating Current:
- 8
A
@ 32 kHz, 1.8V, typical
- 37
A/MHz
@ 1.8V, typical
2016-2018 Microchip Technology Inc.
DS40001839D-page 1
PIC16(L)F18326/18346
• Up to 18 I/O Pins:
- Individually programmable pull-ups
- Slew rate control
- Interrupt-on-change with edge-select
- Input level selection control (ST or TTL)
- Digital open-drain enable
• Peripheral Pin Select (PPS):
- I/O pin remapping of digital peripherals
• Timer modules:
- Timer0:
- 8/16-bit timer/counter
- Synchronous or asynchronous operation
- Programmable prescaler/postscaler
- Time base for capture/compare function
- Timer1/3/5 with gate control:
- 16-bit timer/counter
- Programmable internal or external clock
sources
- Multiple gate sources
- Multiple gate modes
- Time base for capture/compare function
- Timer2/4/6:
- 8-bit timers
- Programmable prescaler/postscaler
- Time base for PWM function
Analog Peripherals
• 10-bit Analog-to-Digital Converter (ADC):
- 17 external channels
- Conversion available during Sleep
• Comparator:
- Two comparators
- Fixed Voltage Reference at non-inverting
input(s)
- Comparator outputs externally accessible
• 5-bit Digital-to-Analog Converter (DAC):
- 5-bit resolution, rail-to-rail
- Positive Reference Selection
- Unbuffered I/O pin output
- Internal connections to ADCs and
comparators
• Voltage Reference:
- Fixed Voltage Reference with 1.024V, 2.048V
and 4.096V output levels Flexible Oscillator
Structure
• High-Precision Internal Oscillator:
- Software-selectable frequency range up to 32
MHz
- ±1% at nominal 4 MHz calibration point
• 4x PLL with External Sources
• Low-Power Internal 31 kHz Oscillator
(LFINTOSC)
• External Low-Power 32 kHz Crystal Oscillator
(SOSC)
• External Oscillator Block with:
- Three Crystal/Resonator modes up to
20 MHz
- Three External Clock modes up to 20 MHz
- Fail-Safe Clock Monitor
- Detects clock source failure
- Oscillator Start-up Timer (OST)
- Ensures stability of crystal oscillator
sources
DS40001839D-page 2
2016-2018 Microchip Technology Inc.
2016-2018 Microchip Technology Inc.
DS40001839D-page 3
TABLE 1:
PIC16(L)F183XX FAMILY TYPES
Program Memory (KW)
Program Memory (KB)
Data Sheet Index
Comparators
EEPROM (B)
Timers 0/1/2
10-bit ADCs
CCP/PWM
5-bit DAC
EUSART
RAM (B)
I/Os
(1)
Device
PIC16(L)F18313
PIC16(L)F18323
PIC16(L)F18324
PIC16(L)F18325
PIC16(L)F18326
PIC16(L)F18344
PIC16(L)F18345
PIC16(L)F18346
Note 1:
2:
(A)
(A)
(B)
(C)
(D)
(B)
(C)
(D)
3.5
3.5
7
14
28
7
14
28
2
2
4
8
16
4
8
16
256
256
256
256
256
256
256
256
256
256
512
1K
2K
512
1K
2K
6
12
12
12
12
18
18
18
5
11
11
11
11
17
17
17
1
2
2
2
2
2
2
2
1
1
1
1
1
1
1
1
1/1/1
1/1/1
1/3/3
1/3/3
1/3/3
1/3/3
1/3/3
1/3/3
2/2
2/2
4/2
4/2
4/2
4/2
4/2
4/2
1
1
2
2
2
2
2
2
1
1
1
1
1
1
1
1
1
1
1
2
2
1
2
2
1
1
1
2
2
1
2
2
2
2
4
4
4
4
4
4
1
1
1
1
1
1
1
1
Y
Y
Y
Y
Y
Y
Y
Y
One pin is input-only.
Debugging Methods: (I) – Integrated on Chip; E – using Emulation Header.
ICD
(2)
I
I
I
I
I
I
I
I
CWG
NCO
CLC
PPS
SPI
I
2
C
PIC16(L)F18326/18346
Data Sheet Index: (Unshaded devices are described in this document.)
Note A:
DS40001799
PIC16(L)F18313/18323 Data Sheet,Full-Featured, Low Pin Count Microcontrollers with XLP
B:
DS40001800
PIC16(L)F18324/18344 Data Sheet,Full-Featured, Low Pin Count Microcontrollers with XLP
C:
DS40001795
PIC16(L)F18325/18345 Data Sheet,Full-Featured, Low Pin Count Microcontrollers with XLP
D:
DS40001839
PIC16(L)F18326/18346 Data Sheet,Full-Featured, Low Pin Count Microcontrollers with XLP
Note:
For other small form-factor package availability and marking information, visit
http://www.microchip.com/packaging
or contact your local sales office.
PIC16(L)F18326/18346
Pin Diagrams
FIGURE 1:
14-PIN PDIP, SOIC, TSSOP
V
DD
RA5
RA4
V
PP
/MCLR/RA3
RC5
RC4
RC3
1
2
3
4
5
6
7
14
13
12
11
10
9
8
V
SS
RA0/ICSPDAT
RA1/ICSPCLK
RA2
RC0
RC1
RC2
Note:
See
Table 2
for location of all peripheral functions.
FIGURE 2:
16-PIN UQFN (4x4)
V
DD
NC
NC
V
SS
RA5
RA4
RA3/MCLR/V
PP
RC5
1
12
RA0/ICSPDAT
2
11
RA1/ICSPCLK
PIC16(L)F18326
3
10
RA2
4
9
RC0
5
6
7
8
Note 1:
2:
See
Table 2
for location of all peripheral functions.
It is recommended that the exposed bottom pad be connected to V
SS
, but must not be the main V
SS
connection
to the device.
FIGURE 3:
20-PIN PDIP, SOIC, SSOP
RC4
RC3
RC2
RC1
16
15
14
13
PIC16(L)F18326
V
DD
RA5
RA4
MCLR/V
PP
/RA3
RC5
RC4
RC3
RC6
RC7
RB7
Note:
1
2
3
20
19
18
V
SS
RA0/ICSPDAT
RA1/ICSPCLK
RA2
RC0
RC1
RC2
RB4
RB5
RB6
PIC16(L)F18346
4
5
6
7
8
9
10
17
16
15
14
13
12
11
See
Table 3
for location of all peripheral functions.
DS40001839D-page 4
2016-2018 Microchip Technology Inc.
PIC16(L)F18326/18346
FIGURE 4:
20-PIN UQFN, QFN (also called VQFN) (4x4)
RA4
RA5
V
DD
V
SS
RA0/ICSPDAT
MCLR/V
PP
/RA3
RC5
RC4
RC3
RC6
1
15
2
14
3
PIC16(L)F18346
13
4
12
5
11
RC7
RB7
RB6
RB5
RB4
6
7
8
9
10
20
19
18
17
16
RA1/ICSPCLK
RA2
RC0
RC1
RC2
Note
1:
2:
See
Table 3
for location of all peripheral functions.
It is recommended that the exposed bottom pad be connected to V
SS
, but must not be the main V
SS
connection to the device.
2016-2018 Microchip Technology Inc.
DS40001839D-page 5