PIC16(L)F1933
28-Pin Flash-Based, 8-Bit CMOS Microcontrollers with
LCD Driver with XLP Technology
High-Performance RISC CPU:
• Only 49 Instructions to Learn:
- All single-cycle instructions except branches
• Operating Speed:
- DC – 32 MHz oscillator/clock input
- DC – 125 ns instruction cycle
• Up to 16K x 14 Words of Flash Program Memory
• Up to 1024 Bytes of Data Memory (RAM)
• Interrupt Capability with Automatic Context
Saving
• 16-Level Deep Hardware Stack
• Direct, Indirect and Relative Addressing modes
• Processor Read Access to Program Memory
• Pinout Compatible to other 28-pin PIC16CXXX
and PIC16FXXX Microcontrollers
PIC16LF1933 Low-Power Features:
• Standby Current:
- 60 nA @ 1.8V, typical
• Operating Current:
- 75
A/MHz,
1.8V, typical
• Timer1 Oscillator Current:
- 600 nA @ 32 kHz, 1.8V, typical
• Low-Power Watchdog Timer Current:
- 500 nA @ 1.8V, typical
Peripheral Features:
• Up to 35 I/O Pins and 1 Input-only pin:
- High-current source/sink for direct LED drive
- Individually programmable interrupt-on-pin
change pins
- Individually programmable weak pull-ups
• Integrated LCD Controller:
- Up to 96 segments
- Variable clock input
- Contrast control
- Internal voltage reference selections
• Capacitive Sensing module (mTouch
TM
)
- Up to 16 selectable channels
• A/D Converter:
- 10-bit resolution and up to 14 channels
- Selectable 1.024/2.048/4.096V voltage
reference
• Timer0: 8-Bit Timer/Counter with 8-Bit
Programmable Prescaler
• Enhanced Timer1
- Dedicated low-power 32 kHz oscillator driver
- 16-bit timer/counter with prescaler
- External Gate Input mode with Toggle and
Single Shot modes
- Interrupt-on-gate completion
• Timer2, 4, 6: 8-Bit Timer/Counter with 8-Bit Period
Register, Prescaler and Postscaler
• Two Capture, Compare, PWM modules (CCP)
- 16-bit Capture, max. resolution 125 ns
- 16-bit Compare, max. resolution 125 ns
- 10-bit PWM, max. frequency 31.25 kHz
• Three Enhanced Capture, Compare, PWM
modules (ECCP)
- 3 PWM time-base options
- Auto-shutdown and auto-restart
- PWM steering
- Programmable dead-band delay
Special Microcontroller Features:
• Precision Internal Oscillator:
- Factory calibrated to ±1%, typical
- Software selectable frequency range from
32 MHz to 31 kHz
• Power-Saving Sleep mode
• Power-on Reset (POR)
• Power-up Timer (PWRT) and Oscillator Start-up
Timer (OST)
• Brown-out Reset (BOR)
- Selectable between two trip points
- Disable in Sleep option
• Multiplexed Master Clear with Pull-up/Input Pin
• Programmable Code Protection
• Wide Operating Voltage Range:
- 1.8V-5.5V (PIC16F1933)
- 1.8V-3.6V (PIC16LF1933)
2011-2012 Microchip Technology Inc.
DS41575C-page 1
PIC16(L)F1933
Peripheral Features (Continued):
• Master Synchronous Serial Port (MSSP) with SPI
and I
2
C
TM
with:
- 7-bit address masking
- SMBus/PMBus
TM
compatibility
- Auto-wake-up on start
• Enhanced Universal Synchronous Asynchronous
Receiver Transmitter (EUSART)
- RS-232, RS-485 and LIN compatible
- Auto-Baud Detect
• SR Latch (555 Timer):
- Multiple Set/Reset input options
- Emulates 555 Timer applications
• 2 Comparators:
- Rail-to-rail inputs/outputs
- Power mode control
- Software enable 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
PIC16(L)F193X/194X Family Types
Program Memory
Flash (words)
MSSP (I
2
C™/SPI)
Data Sheet Index
LCD
(Com/Seg/Total)
10-bit ADC (ch)
CapSense (ch)
Data EEPROM
(bytes)
Comparators
Data SRAM
(bytes)
Timers
(8/16-bit)
EUSART
Debug
(1)
I/O’s
(2)
ECCP
CCP
Device
PIC16(L)F1933 (1) 4096
256
256 25 11
8
2
4/1
1
1
3
2 4/16/60
(3)
I/H
Y
PIC16(L)F1934 (2) 4096
256
256 36 14 16
2
4/1
1
1
3
2
4/24/96
I/H Y
(3)
I/H
PIC16(L)F1936 (2) 8192
256
512 25 11
8
2
4/1
1
1
3
2 4/16/60
Y
PIC16(L)F1937 (2) 8192
256
512 36 14 16
2
4/1
1
1
3
2
4/24/96
I/H Y
(3)
PIC16(L)F1938 (3) 16384 256 1024 25 11
8
2
4/1
1
1
3
2 4/16/60
I/H
Y
PIC16(L)F1939 (3) 16384 256 1024 36 14 16
2
4/1
1
1
3
2
4/24/96
I/H Y
PIC16(L)F1946 (4) 8192
256
512 54 17 17
3
4/1
2
2
3
2
4/46/184
I
Y
PIC16(L)F1947 (4) 16384 256 1024 54 17 17
3
4/1
2
2
3
2
4/46/184
I
Y
Note 1:
I - Debugging, Integrated on Chip; H - Debugging, available using Debug Header.
2:
One pin is input-only.
3:
COM3 and SEG15 share the same physical pin, therefore SEG15 is not available when using 1/4 multiplex
displays.
Data Sheet Index:
(Unshaded devices are described in this document.)
1:
DS41575
PIC16(L)F1933 Data Sheet, 28-Pin Flash, 8-bit Microcontrollers.
2:
DS41364
PIC16(L)F1934/6/7 Data Sheet, 28/40/44-Pin Flash, 8-bit Microcontrollers.
3:
DS41574
PIC16(L)F1938/9 Data Sheet, 28/40/44-Pin Flash, 8-bit Microcontrollers.
4:
DS41414
PIC16(L)F1946/1947 Data Sheet, 64-Pin Flash, 8-bit 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.
DS41575C-page 2
2011-2012 Microchip Technology Inc.
XLP
PIC16(L)F1933
Pin Diagram – 28-Pin SPDIP/SOIC/SSOP
(
PIC16F1933, PIC16LF1933)
28-pin 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
PIC16LF1933
5
PIC16F1933
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
Pin Diagram – 28-Pin QFN/UQFN
(
PIC16F1933, PIC16LF1933)
28-pin QFN/UQFN
28
27
26
25
24
23
22
RE3/MCLR/V
PP
RB7/ICSPDAT
RB6/ICSPCLK
RB5
RB4
RA1
RA0
RA2
RA3
RA4
RA5
V
SS
RA7
RA6
2011-2012 Microchip Technology Inc.
RC0
RC1
RC2
RC3
RC4
RC5
RC6
8
9
10
11
12
13
14
1
2
3
4
5
6
7
PIC16F1933
PIC16LF1933
21
20
19
18
17
16
15
RB3
RB2
RB1
RB0
V
DD
V
SS
RC7
DS41575C-page 3
PIC16(L)F1933
TABLE 1:
28-Pin
SPDIP/SOIC/SSOP
28-Pin
QFN/UQFN
28-PIN SUMMARY (PIC16F1933, PIC16LF1933)
Comparator
Cap Sense
SR Latch
EUSART
Interrupt
ANSEL
Pull-up
Timers
MSSP
RA0
RA1
RA2
RA3
RA4
RA5
RA6
2
3
4
5
6
7
10
27
28
1
2
3
4
7
Y
Y
Y
Y
Y
Y
—
AN0
AN1
AN2/
V
REF
-
AN3/
V
REF
+
—
AN4
—
—
—
—
—
CPS6
CPS7
—
C12IN0-/
C2OUT
(1)
C12IN1-
C2IN+/
DACOUT
C1IN+
C1OUT
C2OUT
—
(1)
SRNQ
(1)
—
—
—
SRQ
SRNQ
—
(1)
—
—
—
—
T0CKI
—
—
—
—
—
—
CCP5
—
—
—
—
—
—
—
—
—
SS
(1)
—
—
—
—
SS
(1)
SEG12
SEG7
COM2
SEG15/
COM3
SEG4
SEG5
SEG1
—
—
—
—
—
—
—
—
—
—
—
—
—
—
V
CAP
(2)
—
—
—
—
V
CAP
(2)
OSC2/
CLKOUT
V
CAP
(2)
OSC1/
CLKIN
—
—
—
—
—
—
—
RA7
RB0
RB1
RB2
RB3
RB4
RB5
9
21
22
23
24
25
26
6
18
19
20
21
22
23
—
Y
Y
Y
Y
Y
Y
—
AN12
AN10
AN8
AN9
AN11
AN13
—
CPS0
CPS1
CPS2
CPS3
CPS4
CPS5
—
—
C12IN3-
—
C12IN2-
—
—
—
SRI
—
—
—
—
—
—
—
—
—
—
—
T1G
(1)
—
CCP4
P1C
P1B
CCP2
(1)
/
(1)
P2A
P1D
P2B
(1)
CCP3
(1)
/
P3A
(1)
—
—
P2B
(1)
CCP2
(1)
/
P2A
(1)
CCP1/
P1A
—
—
—
CCP3
(1)
P3A
(1)
P3B
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
SEG2
SEG0
VLCD1
VLCD2
VLCD3
COM0
COM1
—
INT/
IOC
IOC
IOC
IOC
IOC
IOC
—
Y
Y
Y
Y
Y
Y
RB6
RB7
RC0
RC1
RC2
RC3
RC4
RC5
RC6
RC7
RE3
V
DD
Vss
Note
1:
2:
27
28
11
12
13
14
15
16
17
18
1
20
8,
19
24
25
8
9
10
11
12
13
14
15
26
17
5,16
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
T1OSO/
T1CKI
T1OSI
—
—
T1G
(1)
—
—
—
—
—
—
—
—
TX/CK
RX/DT
—
—
—
—
—
—
—
—
SCK/SCL
SDI/SDA
SDO
—
—
—
—
—
SEG14
SEG13
—
—
SEG3
SEG6
SEG11
SEG10
SEG9
SEG8
—
—
—
IOC
IOC
—
—
—
—
—
—
—
—
—
—
—
Y
Y
—
—
—
—
—
—
—
—
Y
—
—
ICSPCLK/
ICDCLK
ICSPDAT/
ICDDAT
—
—
—
—
—
—
—
—
MCLR/V
PP
V
DD
V
SS
—
—
—
—
—
—
Pin functions can be moved using the APFCON register.
PIC16F1933 devices only.
DS41575C-page 4
2011-2012 Microchip Technology Inc.
Basic
CCP
LCD
A/D
I/O
PIC16(L)F1933
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 7
2.0 Enhanced Mid-Range CPU ........................................................................................................................................................ 13
3.0 Memory Organization ................................................................................................................................................................. 15
4.0 Device Configuration .................................................................................................................................................................. 45
5.0 Oscillator Module (With Fail-Safe Clock Monitor)....................................................................................................................... 51
6.0 Resets ........................................................................................................................................................................................ 69
7.0 Interrupts .................................................................................................................................................................................... 77
8.0 Low Dropout (LDO) Voltage Regulator ...................................................................................................................................... 91
9.0 Power-Down Mode (Sleep) ........................................................................................................................................................ 93
10.0 Watchdog Timer (WDT) ............................................................................................................................................................. 95
11.0 Data EEPROM and Flash Program Memory Control ................................................................................................................. 99
12.0 I/O Ports ................................................................................................................................................................................... 113
13.0 Interrupt-On-Change ................................................................................................................................................................ 129
14.0 Fixed Voltage Reference.......................................................................................................................................................... 133
15.0 Analog-to-Digital Converter (ADC) Module .............................................................................................................................. 137
16.0 Temperature Indicator Module ................................................................................................................................................. 151
17.0 Digital-to-Analog Converter (DAC) Module .............................................................................................................................. 153
18.0 Comparator Module.................................................................................................................................................................. 157
19.0 SR Latch................................................................................................................................................................................... 167
20.0 Timer0 Module ......................................................................................................................................................................... 171
21.0 Timer1 Module with Gate Control............................................................................................................................................. 175
22.0 Timer2/4/6 Modules.................................................................................................................................................................. 187
23.0 Capture/Compare/PWM Modules (ECCP1, ECCP2, ECCP3, CCP4, CCP5).......................................................................... 191
24.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................................... 219
25.0 Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) ............................................................... 275
26.0 Capacitive Sensing Module...................................................................................................................................................... 305
27.0 Liquid Crystal Display (LCD) Driver Module............................................................................................................................. 313
28.0 In-Circuit Serial Programming™ (ICSP™) ............................................................................................................................... 347
29.0 Instruction Set Summary .......................................................................................................................................................... 351
30.0 Electrical Specifications............................................................................................................................................................ 365
31.0 DC and AC Characteristics Graphs and Charts ....................................................................................................................... 397
32.0 Development Support............................................................................................................................................................... 433
33.0 Packaging Information.............................................................................................................................................................. 437
Appendix A: Data Sheet Revision History.......................................................................................................................................... 449
Appendix B: Migrating From Other PIC
®
Devices.............................................................................................................................. 449
Index .................................................................................................................................................................................................. 451
The Microchip Web Site ..................................................................................................................................................................... 459
Customer Change Notification Service .............................................................................................................................................. 459
Customer Support .............................................................................................................................................................................. 459
Reader Response .............................................................................................................................................................................. 460
Product Identification System ............................................................................................................................................................ 461
2011-2012 Microchip Technology Inc.
DS41575C-page 5