Full-Featured, Low Pin Count Microcontrollers with XLP
Description
PIC16(L)F18325/18345 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
• Only 48 Instructions
• 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 (PWRT)
• Brown-out Reset (BOR)
• 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 periph-
erals
• 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
•
•
•
•
14 Kbytes Program Flash Memory
1 KB Data SRAM Memory
256B of EEPROM
Direct, Indirect and Relative Addressing Modes
Operating Characteristics
• Operating Voltage Range:
- 1.8V to 3.6V (PIC16LF18325/18345)
- 2.3V to 5.5V (PIC16F18325/18345)
• 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
2015-2019 Microchip Technology Inc.
DS40001795H-page 1
PIC16(L)F18325/18345
• 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
Flexible Oscillator Structure
• High-Precision Internal Oscillator:
- Software-selectable frequency range up to 32
MHz
- ±2% 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 32 MHz
- Fail-Safe Clock Monitor
- Detects clock source failure
- Oscillator Start-up Timer (OST)
- Ensures stability of crystal oscillator
sources
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
DS40001795H-page 2
2015-2019 Microchip Technology Inc.
PIC16(L)F18325/18345
PIC16(L)F183XX Family Types
Program Flash
Memory (Kbytes)
Data Sheet Index
Program Flash
Memory (Words)
10-bit ADC (ch)
Idle and Doze
Y
Y
Y
Y
Y
Y
Y
Y
Data Memory
(bytes)
High-Speed/
Comparators
Data SRAM
(bytes)
10-bit PWM
Clock Ref
5-bit DAC
Timers
(8/16-bit)
EUSART
Debug
(1)
I
I
I
I
I
I
I
I
I
2
C/SPI
I/Os
(2)
CWG
NCO
DSM
Device
PIC16(L)F18313
PIC16(L)F18323
PIC16(L)F18324
PIC16(L)F18325
PIC16(L)F18344
PIC16(L)F18345
Note
(1)
(1)
(2)
(3)
(2)
(3)
2048
2048
4096
8192
4096
8192
3.5
3.5
7
14
28
7
14
28
256
256
256
256
256
256
256
256
256
256
512
6
5
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
1
1
2
2
2
2
2
2
1
1
1
1
1
1
1
1
2/1
2/1
4/3
4/3
4/3
4/3
4/3
4/3
2
2
4
4
4
4
4
4
2
2
2
2
2
2
2
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1/1
1/1
1/1
2/2
2/2
1/1
2/2
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
Y
Y
Y
Y
Y
Y
Y
Y
12 11
12 11
1024 12 11
2048 12 15
512
18 17
1024 18 17
2048 18 21
PIC16(L)F18326
(4)
16384
PIC16(L)F18346
(4)
16384
1:
Debugging Methods: (I) – Integrated on Chip;
2:
One pin is input-only.
Data Sheet Index:
(Unshaded devices are described in this document.)
1:
DS40001799
PIC16(L)F18313/18323 Data Sheet, Full-Featured, Low Pin Count Microcontrollers with XLP
2:
DS40001800
PIC16(L)F18324/18344 Data Sheet, Full Featured, Low Pin Count Microcontrollers with XLP
3:
DS40001795
PIC16(L)F18325/18345 Data Sheet, Full Featured, Low Pin Count Microcontrollers with XLP
PIC16(L)F18326/18346 Data Sheet, Full Featured, Low Pin Count Microcontrollers with XLP
4:
DS40001839
Note:
For other small form-factor package availability and marking information, please visit
http://www.microchip.com/packaging
or contact your local sales office.
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 1
for location of all peripheral functions.
2015-2019 Microchip Technology Inc.
PIC16(L)F18325
DS40001795H-page 3
PMD
Y
Y
Y
Y
Y
Y
Y
Y
CCP
CLC
PPS
XLP
PIC16(L)F18325/18345
FIGURE 2:
16-PIN UQFN, VQFN (4x4)
V
DD
NC
RA5
RA4
RA3/MCLR/V
PP
RC5
Note
1:
2:
See
Table 1
for location of all peripheral functions.
1
12 RA0/ICSPDAT
2
11 RA1/ICSPCLK
PIC16(L)F18325
3
10 RA2
4
9 RC0
5
6
7
8
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
NC
V
SS
V
DD
RA5
RA4
MCLR/V
PP
/RA3
RC5
RC4
RC3
RC6
RC7
RB7
1
2
3
20
19
18
V
SS
RA0/ICSPDAT
RA1/ICSPCLK
RA2
RC0
RC1
RC2
RB4
RB5
RB6
PIC16(L)F18345
4
5
6
7
8
9
10
17
16
15
14
13
12
11
Note:
See
Table 2
for location of all peripheral functions.
FIGURE 4:
20-PIN UQFN, 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)F18345
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 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.
DS40001795H-page 4
2015-2019 Microchip Technology Inc.
Pin Allocation Tables
TABLE 1:
14-Pin PDIP/SOIC/TSSOP
2015-2019 Microchip Technology Inc.
DS40001795H-page 5
14/16-PIN ALLOCATION TABLE (PIC16(L)F18325)
16-Pin UQFN
Comparator
Reference
EUSART
Interrupt
Pull-up
Timers
MSSP
CLKR
RA0
RA1
RA2
RA3
RA4
RA5
13
12
11
4
3
2
12
11
10
3
2
1
ANA0
ANA1
ANA2
—
ANA4
ANA5
—
V
REF
+
V
REF
-
—
—
—
C1IN0+
C1IN0-
C2IN0-
—
—
—
—
—
—
—
—
—
—
DAC1OUT
DAC1
REF
+
DAC1
REF
-
—
—
—
—
—
—
—
—
—
—
—
T0CKI
(1)
—
T1G
(1)
SOSCO
T1CKI
(1)
SOSCIN
SOSCI
T5CKI
(1)
—
—
T5G
(1)
T3G
(1)
T3CKI
(1)
—
—
—
—
CCP3
(1)
—
—
—
—
—
—
—
—
—
—
—
CWG1IN
(1)
CWG2IN
(1)
—
—
—
SS2
(1)
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
CLCIN3
(1)
—
—
—
—
—
—
IOC
IOC
INT
(1)
IOC
IOC
IOC
IOC
Y
Y
Y
Y
Y
Y
ICDDAT/
ICSPDAT
ICDCLK/
ICSPCLK
—
MCLR
V
PP
CLKOUT
OSC2
CLKIN
OSC1
—
—
—
—
—
—
V
DD
V
SS
Basic
CWG
PWM
I/O
(2)
NCO
DSM
DAC
ADC
CCP
CLC
PIC16(L)F18325/18345
RC0
RC1
RC2
RC3
RC4
RC5
V
DD
V
SS
Note
1:
2:
3:
4:
10
9
8
7
6
5
1
14
9
8
7
6
5
4
16
13
ANC0
ANC1
ANC2
ANC3
ANC4
ANC5
—
—
—
—
—
—
—
—
—
—
C2IN0+
C1IN1-
C2IN1-
C1IN2-
C2IN2-
C1IN3-
C2IN3-
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
MDCIN1
(1)
MDMIN
(1)
—
MDCIN2
(1)
—
—
—
CCP4
(1)
—
CCP2
(1)
—
CCP1
(1)
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
SCK1
(1)
SCL1
(1,3,4)
SDI1
(1)
SDA1
(1,3,4)
—
SS1
(1)
SCK2
(1)
SCL2
(1,3,4)
SDI2
(1)
SDA2
(1,3,4)
—
—
—
—
—
—
—
RX
(1)
—
—
—
CLCIN2
(1)
—
CLCIN0
(1)
CLCIN1
(1)
—
—
—
—
—
—
—
—
—
—
—
IOC
IOC
IOC
IOC
IOC
IOC
—
—
Y
Y
Y
Y
Y
Y
—
—
Default peripheral input. Input can be moved to any other pin with the PPS input selection registers.
All pin outputs default to PORT latch data. Any pin can be selected as a digital peripheral output with the PPS output selection registers.
These peripheral functions are bidirectional. The output pin selections must be the same as the input pin selections.
These pins are configured for I
2
C logic levels; clock and data signals may be assigned to any of these pins. Assignments to the other pins (e.g., RA5) will operate, but logic levels will be standard TTL/
The CRT (cathode ray tube) used in televisions has the disadvantages of being large, heavy, and limited in size. With the development of electronic technology, the demand for mobile displays is increa...
[i=s]This post was last edited by superw on 2022-9-9 13:40[/i]1. Data Acquisition
The manufacturer provides K510 related documents and SDK on the evaluation page. You can also download the relevant SD...
I jumped from a pure agent to another agent + distributor. After I came in, I found that the company's revenue was 50-50, and the profit of distributor was much higher than that of agent. This shook m...
[i=s]This post was last edited by lldky88 on 2017-5-11 14:00[/i] [size=5][backcolor=rgb(239, 245, 249)][font=宋体][color=#000000]1. Module Features[/color][/font][/backcolor][/size] [align=left][backcol...
1 Introduction With the development of information technology, digital signal processing technology has become one of the most important technologies in the digital society. Due to the fast speed, hig...
In this article, the high-performance DSP developed by TI can be used as an effective confidentiality method if it is applied to PC encryption cards.
As an effective network security solution,...[Details]
In public places such as schools, government agencies, factories and mines, as well as public corridors in residential areas, the phenomenon of long-burning lights is very common, which causes a h...[Details]
Introduction
Power subsystems are becoming more and more integrated into the overall system. Power systems have moved from being separate "essential dangerous devices" to being monitorable...[Details]
A multi-point temperature control heating control system was designed using the SST89E564RC single-chip microcomputer and a new temperature measuring device. The heating system can be controlled in...[Details]
Contact resistance
is the resistance to current flow through a closed pair of contacts. This type of measurement is performed on devices such as connectors,
relays
, and switches. The...[Details]
1 Introduction to HART Protocol
HART (Highway Addressable Remote Transducer), an open communication protocol for addressable remote sensor high-speed channels, was launched by Rosemen in the U...[Details]
my country is a big country in agriculture, grain production and consumption. Grains are a necessary condition for our nation to survive and develop. The flour processing industry will exist forever w...[Details]
This paper designs a 16x16LED Chinese character display bar based on single-chip dynamic scanning control, briefly analyzes the principle of Chinese character display, and studies how the LED displ...[Details]
1. Disadvantages of choosing too high a voltage level
Choosing too high a voltage level will result in too high an investment and a long payback period. As the voltage level increases, the...[Details]
Since the late 1990s, with the demand for higher system efficiency and lower power consumption, the technological update of telecommunications and data communication equipment has promoted the deve...[Details]
Our flight had just begun to descend when a gentleman sitting next to me turned to talk to me about engineering—he had seen me reading an engineering journal. The gentleman next to me said that he ...[Details]
1. The composition and structure of mobile phone lithium battery
Mobile phone lithium batteries are mainly composed of plastic shell upper and lower covers, lithium battery cells, protection c...[Details]
Nowadays, more and more people have digital cameras. The convenience and speed of digital cameras have gradually replaced film cameras and become the main tool for people's daily photography. The n...[Details]
Rated capacity refers to the maximum output power of the UPS (the product of voltage V and current A).
Usually, the UPS power supplies sold on the market are marked with "W" (watt) for smaller...[Details]
Any power transmission and distribution equipment and power-consuming devices cannot be pure resistive loads, so they must occupy a certain amount of reactive power. The existence of reactive curre...[Details]