PIC16(L)F1784/6/7
28/40/44-Pin
8-Bit Advanced Analog Flash Microcontrollers
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
PIC16LF1784/6/7 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
- Up to 14 single-ended channels
- Up to 7 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
• Four 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
• Up to Three 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 8 KW Flash Program Memory:
- Self-programmable under software control
- Programmable code protection
- Programmable write protection
• 256 Bytes of Data EEPROM
• Up to 1024 Bytes of RAM
High Performance PWM Controller:
• Three 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
I/O Features:
• Up to 36 I/O Pins and 1 Input-only Pin:
- High current sink/source for LED drivers
- Individually programmable interrupt-on-
change pins
- Individually programmable weak pull-ups
- Individual input level selection
- Individually programmable slew rate control
- Individually programmable open drain
outputs
2012 Microchip Technology Inc.
Preliminary
DS41637B-page 1
PIC16(L)F1784/6/7
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
• Three Capture/Compare/PWM modules (CCP):
- 16-bit capture, max 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 (PIC16LF1784/6/7)
- 2.3V to 5.5V (PIC16F1784/6/7)
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
DS41637B-page 2
Preliminary
2012 Microchip Technology Inc.
PIC16(L)F1784/6/7
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
Y
PIC16(L)F1783
(1)
4096
256
512 25 11 3
2
1/0 2/1
2
2
1
1
I
Y
PIC16(L)F1784
(1)
4096
256
512 36 14 4
3
1/0 2/1
3
3
1
1
I
Y
PIC16(L)F1786
(1)
8192
256 1024 25 11 4
2
1/0 2/1
3
3
1
1
I
Y
PIC16(L)F1787
(1)
8192
256 1024 36 14 4
3
1/0 2/1
3
3
1
1
I
Y
PIC16(L)F1788
(1) 16384 256 2048 25 11 4
2
1/3 2/1
4
3
1
1
I
Y
PIC16(L)F1789
(1) 16384 256 2048 36 14 4
3
1/3 2/1
4
3
1
1
I
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:
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 Document
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.
2012 Microchip Technology Inc.
Preliminary
DS41637B-page 3
XLP
PIC16(L)F1784/6/7
Pin Diagrams
FIGURE 1:
28-PIN DIAGRAM FOR PIC16(L)F1786
SPDIP, SOIC, SSOP
V
PP
/MCLR/RE3
RA0
RA1
RA2
RA3
RA4
RA5
V
SS
RA7
RA6
RC0
RC1
RC2
RC3
Note:
1
2
3
4
PIC16(L)F1786
5
6
7
8
9
10
11
12
13
14
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
See
Table 1
for the location of all peripheral functions.
FIGURE 2:
28-PIN DIAGRAM FOR PIC16(L)F1786
Note:
See
Table 1
for the location of all peripheral functions.
RC0
RC1
RC2
RC3
RC4
RC5
RC6
DS41637B-page 4
Preliminary
8
9
10
11
12
13
14
RA2
RA3
RA4
RA5
V
SS
RA7
RA6
1
2
3
4
5
6
7
28
27
26
25
24
23
22
PIC16(L)F1786
21
20
19
18
17
16
15
RB3
RB2
RB1
RB0
V
DD
V
SS
RC7
RA1
RA0
RE3/MCLR/V
PP
RB7/ICSPDAT
RB6/ICSPCLK
RB5
RB4
QFN
2012 Microchip Technology Inc.
2012 Microchip Technology Inc.
TABLE 1:
28-Pin SPDIP,
SOIC, SSOP
28-Pin QFN,
I/O
28-PIN ALLOCATION TABLE (PIC16(L)F1786)
Comparator
Operation
Amplifiers
Reference
8-bit DAC
Interrupt
EUSART
Pull-up
Timers
PSMC
MSSP
Basic
—
—
—
—
—
—
V
CAP
OSC2
CLKOUT
OSC1
CLKIN
—
ADC
CCP
—
RA0
2
27
AN0
—
C1IN0-
C2IN0-
C3IN0-
C4IN0-
C1IN1-
C2IN1-
C3IN1-
C4IN1-
C1IN0+
C2IN0+
C3IN0+
C4IN0+
C1IN1+
C1OUT
C2OUT
C2OUT
(1)
—
—
—
—
—
—
IOC
Y
RA1
3
28
AN1
—
OPA1OUT
—
—
—
—
—
—
IOC
Y
RA2
4
1
AN2
V
REF
-
DAC1V
REF
-
DAC1OUT1
—
—
—
—
—
IOC
Y
RA3
RA4
RA5
RA6
5
6
7
10
2
3
4
7
AN3
—
AN4
—
V
REF
+
DAC1V
REF
+
—
—
—
—
OPA1IN+
OPA1IN-
—
—
—
—
—
—
T0CKI
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
SS
—
IOC
IOC
IOC
IOC
Y
Y
Y
Y
Preliminary
DS41637B-page 5
RA7
9
6
—
—
—
—
—
—
PSMC1CLK
PSMC2CLK
PSMC3CLK
PSMC1IN
PSMC2IN
PSMC3IN
—
—
—
—
IOC
Y
RB0
21
18
AN12
—
C2IN1+
—
—
—
CCP1
(1)
—
—
INT
IOC
IOC
Y
PIC16(L)F1784/6/7
RB1
22
19
AN10
—
C1IN3-
C2IN3-
C3IN3-
C4IN3-
—
C1IN2-
C2IN2-
C3IN2-
C3IN1+
C4IN2-
C3OUT
C4IN1+
—
OPA2OUT
—
—
—
—
—
Y
—
RB2
RB3
23
24
20
21
AN8
AN9
—
—
OPA2IN-
OPA2IN+
—
—
—
—
—
—
—
CCP2
(1)
—
—
—
—
IOC
IOC
Y
Y
CLKR
—
RB4
RB5
RB6
RB7
Note
25
26
27
28
1:
22
23
24
25
AN11
AN13
—
—
—
—
—
—
—
—
—
—
—
—
—
DAC1OUT2
—
T1G
—
—
—
—
—
—
—
CCP3
(1)
—
—
—
—
TX
(1)
CK
(1)
RX
(1)
DT
(1)
—
SDO
(1)
SDI
(1)
SDA
(1)
SCK
(1)
SCL
(1)
IOC
IOC
IOC
IOC
Y
Y
Y
Y
—
—
ICSPCLK
ICSPDAT
Alternate pin function selected with the APFCON1 (Register
13-1)
and APFCON2 (Register
13-2)
registers.