PIC16(L)F1782/3
28-Pin
8-Bit Advanced Analog Flash Microcontroller
High-Performance RISC CPU:
• Only 49 Instructions
• Operating Speed:
- DC – 32 MHz clock input
- DC – 125 ns instruction cycle
• 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
PIC16LF1782/3 with XLP:
•
•
•
•
Sleep mode: 50 nA @ 1.8V, typical
Watchdog Timer: 500 nA @ 1.8V, typical
Secondary Oscillator: 500 nA @ 32 kHz
Operating Current:
- 8
A
@ 32 kHz, 1.8V, typical
- 32
A/MHz
@ 1.8V, typical
Analog Peripheral Features:
• Analog-to-Digital Converter (ADC):
- Fully differential 12-bit converter
- Up to 75 ksps conversion rate
- 11 single-ended channels
- 5 differential channels
- Positive and negative reference selection
• 8-bit Digital-to-Analog Converter (DAC):
- Output available externally
- Positive and negative reference selection
- Internal connections to comparators, op
amps, Fixed Voltage Reference (FVR) and
ADC
• Three High-Speed Comparators:
- 50 ns response time @ V
DD
= 5V
- Rail-to-rail inputs
- Software selectable hysteresis
- Internal connection to op amps, FVR and
DAC
• Two Operational Amplifiers:
- Rail-to-rail inputs/outputs
- High/Low selectable Gain Bandwidth Product
- Internal connection to DAC and FVR
• Fixed Voltage Reference (FVR):
- 1.024V, 2.048V and 4.096V output levels
- Internal connection to ADC, comparators and
DAC
Memory Features:
• Up to 4 KW Flash Program Memory:
- Self-programmable under software control
- Programmable code protection
- Programmable write protection
• 256 Bytes of Data EEPROM
• Up to 512 Bytes of RAM
High Performance PWM Controller:
• Two Programmable Switch Mode Controller
(PSMC) modules:
- Digital and/or analog feedback control of
PWM frequency and pulse begin/end times
- 16-bit Period, Duty Cycle and Phase
- 16 ns clock resolution
- Supports Single PWM, Complementary,
Push-Pull and 3-phase modes of operation
- Dead-band control with 8-bit counter
- Auto-shutdown and restart
- Leading and falling edge blanking
- Burst mode
2011-2012 Microchip Technology Inc.
Preliminary
DS41579D-page 1
PIC16(L)F1782/3
Digital Peripheral Features:
• Timer0: 8-Bit Timer/Counter with 8-Bit
Programmable Prescaler
• Enhanced Timer1:
- 16-bit timer/counter with prescaler
- External Gate Input mode
- Dedicated low-power 32 kHz oscillator driver
• Timer2: 8-Bit Timer/Counter with 8-Bit Period
Register, Prescaler and Postscaler
• Two Capture/Compare/PWM modules (CCP):
- 16-bit capture, maximum resolution 12.5 ns
- 16-bit compare, max resolution 31.25 ns
- 10-bit PWM, max frequency 32 kHz
• Master Synchronous Serial Port (SSP) with SPI
and I
2
C
TM
with:
- 7-bit address masking
- SMBus/PMBus
TM
compatibility
• Enhanced Universal Synchronous Asynchronous
Receiver Transmitter (EUSART):
- RS-232, RS-485 and LIN compatible
- Auto-baud detect
- Auto-wake-up on start
General Microcontroller Features:
•
•
•
•
•
•
•
•
•
•
Power-Saving Sleep mode
Power-on Reset (POR)
Power-up Timer (PWRT)
Oscillator Start-up Timer (OST)
Brown-out Reset (BOR) with Selectable Trip Point
Extended Watchdog Timer (WDT)
In-Circuit Serial Programming
TM
(ICSP
TM
)
In-Circuit Debug (ICD)
Enhanced Low-Voltage Programming (LVP)
Operating Voltage Range:
- 1.8V to 3.6V (PIC16LF1782/3)
- 2.3V to 5.5V (PIC16F1782/3)
Oscillator Features:
• Operate up to 32 MHz from Precision Internal
Oscillator:
- Factory calibrated to ±1%, typical
- Software selectable frequency range from
32 MHz to 31 kHz
• 31 kHz Low-Power Internal Oscillator
• 32.768 kHz Timer1 Oscillator:
- Available as system clock
- Low-power RTC
• External Oscillator Block with:
- 4 crystal/resonator modes up to 32 MHz
using 4x PLL
- 3 external clock modes up to 32 MHz
• 4x Phase-Locked Loop (PLL)
• Fail-Safe Clock Monitor:
- Detect and recover from external oscillator
failure
• Two-Speed Start-up:
- Minimize latency between code execution
and external oscillator start-up
DS41579D-page 2
Preliminary
2011-2012 Microchip Technology Inc.
PIC16(L)F1782/3
PIC16(L)F178X Family Types
Programmable Switch
Mode Controllers
(PSMC)
Program Memory
Flash (words)
MSSP (I
2
C™/SPI)
Data Sheet Index
12-bit ADC (ch)
Data EEPROM
(bytes)
Comparators
DAC (8/5-bit)
Operational
Amplifiers
Data SRAM
(bytes)
Timers
(8/16-bit)
EUSART
Debug
(1)
I/O’s
(2)
CCP
Device
PIC16(L)F1782
(1)
2048
256
256 25 11 3
2
1/0
2/1
2
2
1
1
I
PIC16(L)F1783
(1)
4096
256
512 25 11 3
2
1/0
2/1
2
2
1
1
I
PIC16(L)F1784
(2)
4096
256
512 36 14 4
3
1/0
2/1
3
3
1
1
I
PIC16(L)F1786
(2)
8192
256 1024 25 11 4
2
1/0
2/1
3
3
1
1
I
PIC16(L)F1787
(2)
8192
256 1024 36 14 4
3
1/0
2/1
3
3
1
1
I
PIC16(L)F1788
(3) 16384 256 2048 25 11 4
2
1/3
2/1
4
3
1
1
I
PIC16(L)F1789
(3) 16384 256 2048 36 14 4
3
1/3
2/1
4
3
1
1
I
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:
DS41579
PIC16(L)F1782/3 Data Sheet, 28-Pin Flash, 8-bit Advanced Analog MCUs.
2:
DS41637
PIC16(L)F1784/6/7 Data Sheet, 28/40/44-Pin Flash, 8-bit Advanced Analog MCUs.
3:
Future Release
PIC16(L)F1788/9 Data Sheet, 28/40/44-Pin Flash, 8-bit Advanced Analog MCUs.
Note:
For other small form-factor package availability and marking information, please visit
http://www.microchip.com/packaging
or contact your local sales office.
2011-2012 Microchip Technology Inc.
Preliminary
DS41579D-page 3
XLP
Y
Y
Y
Y
Y
Y
Y
PIC16(L)F1782/3
FIGURE 1:
28-PIN DIAGRAM FOR PIC16(L)F1782/3
SPDIP, SOIC, SSOP
V
PP
/MCLR/RE3
RA0
RA1
RA2
RA3
RA4
RA5
V
SS
RA7
RA6
RC0
RC1
RC2
RC3
1
2
3
4
6
7
8
9
10
11
12
13
14
PIC16(L)F1782/3
5
28
27
26
25
24
23
22
21
20
19
18
17
16
15
RB7/ICSPDAT
RB6/ICSPCLK
RB5
RB4
RB3
RB2
RB1
RB0
V
DD
V
SS
RC7
RC6
RC5
RC4
Note:
See
Table 1
for the location of all peripheral functions.
FIGURE 2:
28-PIN DIAGRAM FOR PIC16(L)F1782/3
QFN, UQFN
RA1
RA0
RE3/MCLR/V
PP
RB7/ICSPDAT
RB6/ICSPCLK
RB5
RB4
1
2
3
4
5
6
7
28
27
26
25
24
23
22
21
20
19
18
17
16
15
Note:
See
Table 1
for the location of all peripheral functions.
RC0
RC1
RC2
RC3
RC4
RC5
RC6
8
9
10
11
12
13
14
RA2
RA3
RA4
RA5
V
SS
RA7
RA6
PIC16(L)F1782/3
RB3
RB2
RB1
RB0
V
DD
V
SS
RC7
DS41579D-page 4
Preliminary
2011-2012 Microchip Technology Inc.
PIC16(L)F1782/3
TABLE 1:
28-Pin SPDIP, SOIC, SSOP
28-Pin QFN, UQFN
28-PIN ALLOCATION TABLE (PIC16(L)F1782/3)
Operation Amplifiers
ADC Reference
Comparator
8-bit DAC
EUSART
Interrupt
Pull-up
Timers
PSMC
MSSP
RA0
2
27
AN0
—
C1IN0-
C2IN0-
C3IN0-
C1IN1-
C2IN1-
C3IN1-
C1IN0+
C2IN0+
C3IN0+
C1IN1+
C1OUT
C2OUT
C2OUT
—
C2IN1+
C1IN3-
C2IN3-
C3IN3-
—
C1IN2-
C2IN2-
C3IN2-
C3IN1+
C3OUT
—
—
—
—
—
—
—
—
—
—
—
—
—
(1)
—
—
—
—
—
—
—
IOC
Y
RA1
3
28
AN1
—
OPA1OUT
—
—
—
—
—
—
IOC
Y
RA2
4
1
AN2
V
REF
-
—
DACOUT1
DACV
REF
-
DACV
REF
+
—
—
—
—
—
—
—
—
—
—
—
IOC
Y
RA3
RA4
RA5
5
6
7
2
3
4
7
6
AN3
—
AN4
—
—
AN12
AN10
V
REF
+
—
—
—
—
—
—
—
OPA1IN+
OPA1IN-
—
—
—
OPA2OUT
—
T0CKI
—
—
—
—
—
—
—
—
—
PSMC1CLK
PSMC2CLK
PSMC1IN
PSMC2IN
—
—
—
—
—
—
CCP1
(1)
—
—
—
—
—
—
—
—
—
—
SS
—
—
—
—
IOC
IOC
IOC
IOC
IOC
INT/
IOC
IOC
Y
Y
Y
Y
Y
Y
Y
RA6 10
RA7
9
OSC2/
CLKOUT
OSC1/
CLKIN
—
—
RB0 21 18
RB1 22 19
RB2 23 20
RB3 24 21
AN8
AN9
—
—
OPA2IN-
OPA2IN+
—
—
—
—
—
—
—
CCP2
(1)
—
—
—
—
IOC
IOC
Y
Y
CLKR
—
RB4 25 22
RB5 26 23
RB6 27 24
RB7 28 25
RC0 11
RC1 12
8
9
AN11
AN13
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
DACOUT2
—
—
—
—
—
—
—
—
—
—
—
—
T1G
—
—
T1OSO
T1CKI
T1OSI
—
—
—
—
—
—
—
—
—
—
—
—
—
PSMC1A
PSMC1B
PSMC1C
PSMC1D
PSMC1E
PSMC1F
PSMC2A
PSMC2B
—
—
—
—
—
—
—
—
CCP2
CCP1
—
—
—
—
—
—
—
—
—
—
TX
(1)
CK
(1)
RX
(1)
DT
(1)
—
—
—
—
—
—
TX
CK
RX
DT
—
—
—
—
SDO
(1)
SDI
(1)
SDA
(1)
SCK
(1)
SCL
(1)
—
—
—
SCK-
SCL
SDI
SDA
SDO
—
—
—
—
—
IOC
IOC
IOC
IOC
IOC
IOC
IOC
IOC
IOC
IOC
IOC
IOC
IOC
—
—
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
—
—
ICSPCLK
ICSPDAT
—
—
—
—
—
—
—
—
MCLR/
V
PP
V
DD
V
SS
RC2 13 10
RC3 14 11
RC4 15 12
RC5 16 13
RC6 17 14
RC7 18 15
RE3
V
DD
V
SS
Note
1
26
20 17
8, 5,
19 16
1:
Alternate pin function selected with the APFCON1 (Register
13-1)
register.
2011-2012 Microchip Technology Inc.
Preliminary
DS41579D-page 5
Basic
—
—
—
—
—
—
—
—
ADC
CCP
I/O