PIC16F193X/LF193X
Data Sheet
28/40/44-Pin Flash-Based, 8-Bit
CMOS Microcontrollers with
LCD Driver and nanoWatt Technology
©
2008 Microchip Technology Inc.
Preliminary
DS41364A
Note the following details of the code protection feature on Microchip devices:
•
•
Microchip products meet the specification contained in their particular Microchip Data Sheet.
Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
Microchip is willing to work with the customer who is concerned about the integrity of their code.
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
•
•
•
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EE
L
OQ
, K
EE
L
OQ
logo, MPLAB, PIC, PICmicro,
PICSTART, rfPIC, SmartShunt and UNI/O are registered
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
FilterLab, Linear Active Thermistor, MXDEV, MXLAB,
SEEVAL, SmartSensor and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, In-Circuit Serial
Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB
Certified logo, MPLIB, MPLINK, mTouch, PICkit, PICDEM,
PICDEM.net, PICtail, PIC
32
logo, PowerCal, PowerInfo,
PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Total
Endurance, WiperLock and ZENA are trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
© 2008, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
®
MCUs and dsPIC
®
DSCs, K
EE
L
OQ
®
code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
DS41364A-page ii
Preliminary
©
2008 Microchip Technology Inc.
PIC16F193X/LF193X
28/40/44-Pin Flash-Based, 8-Bit CMOS Microcontrollers
Devices Included In This Data Sheet:
PIC16F193X Devices:
• PIC16F1933
• PIC16F1936
• PIC16F1938
PIC16LF193X Devices:
• PIC16LF1933
• PIC16LF1936
• PIC16LF1938
• PIC16LF1934
• PIC16LF1937
• PIC16LF1939
• PIC16F1934
• PIC16F1937
• PIC16F1939
Low-Power Features:
• Standby Current:
- 100 nA @ 2.0V, typical (PIC16LF193X)
• Operating Current:
- 6.0
μA
@ 32 kHz, 2.0V, typical (PIC16LF193X)
- 54
μA
@ 1 MHz, 2.0V, typical (PIC16LF193X)
• Low-Power Watchdog Timer Current:
- 1.0
μA
@ 2.0V, typical (PIC16LF193X)
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
• A/D Converter:
- 10-bit resolution and up to 14 channels
- Can operate during Sleep
- 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
- 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 12.5 ns
- 16-bit Compare, max. resolution 200 ns
- 10-bit PWM, max. frequency 20 kHz
• Three Enhanced Capture, Compare, PWM
modules (ECCP)
- Software selectable time-bases
- Auto-shutdown and auto-restart
- PWM steering
• 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
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
• 16-Level Deep Hardware Stack
• Direct, Indirect and Relative Addressing modes
• Processor Read Access to Program Memory
• Pinout Compatible to other 28/40-pin PIC16CXXX
and PIC16FXXX Microcontrollers
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
• Industrial and Extended Temperature Range
• 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
• High Endurance Flash/EEPROM cell:
- 100,000 write Flash endurance
- 1,000,000 write EEPROM endurance
- Flash/Data EEPROM retention: > 40 years
• Wide Operating Voltage Range:
- 1.8V-5.5V (PIC16F193X)
- 1.8V-3.6V (PIC16LF193X)
©
2008 Microchip Technology Inc.
Preliminary
DS41364A-page 1
PIC16F193X/LF193X
Peripheral Features (Continued):
• SR Latch (555 Timer):
- Multiple Set/Reset input options
• Integrated LCD Controller:
- Up to 96 segments
- Variable clock input
- Contrast control
- Internal voltage reference selections
• 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
PIC16F193X/LF193X Family Types
Program
Data
Memory
SRAM
I/Os
EEPROM
Flash
(bytes)
(bytes)
(words)
4096
4096
8192
8192
16384
16384
256
256
256
256
256
256
256
256
512
512
1024
1024
25
36
25
36
25
36
10-bit
MI
2
C/
Timers
EUSART
A/D Comparators
8/16-bit
SPI
(ch)
11
14
11
14
14
14
2
2
2
2
2
2
4/1
4/1
4/1
4/1
4/1
4/1
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
ECCP
Full
Bridge
1
2
1
2
1
2
ECCP
Half
Bridge
2
1
2
1
2
1
Device
CCP
LCD
PIC16F1933
PIC16LF1933
PIC16F1934
PIC16LF1934
PIC16F1936
PIC16LF1936
PIC16F1937
PIC16LF1937
PIC16F1938
PIC16LF1938
PIC16F1939
PIC16LF1939
Note
1:
2
2
2
2
2
2
16
(1)
/4
24/4
16
(1)
/4
24/4
16
(1)
/4
24/4
COM3 and SEG15 share the same physical pin on PIC16F1933/1936/1938/PIC16LF1933/1936/1938, therefore, SEG15 is not
available when using 1/4 multiplex displays.
DS41364A-page 2
Preliminary
©
2008 Microchip Technology Inc.
PIC16F193X/LF193X
Pin Diagram – 28-Pin SPDIP/SOIC/SSOP
(
PIC16F1933/1936/1938, PIC16LF1933/1936/1938)
28-pin SPDIP, SOIC, SSOP
V
PP
/MCLR/RE3
SEG12/V
CAP
(2)
/SS
(1)
/SRNQ
(1)
/C2OUT
(1)
/C12IN0-/AN0/RA0
SEG7/C12IN1-/AN1/RA1
COM2/CV
REF
/V
REF
-/C2IN+/AN2/RA2
SEG15/COM3/V
REF
+/C1IN+/AN3/RA3
SEG4/CCP5/SRQ/T0CKI/CPS6/C1OUT/RA4
SEG5/V
CAP
(2)
/SS
(1)
/SRNQ
(1)
/CPS7/C2OUT
(1)
/AN4/RA5
V
SS
SEG2/CLKIN/OSC1/RA7
SEG1/V
CAP
(2)
/CLKOUT/OSC2/RA6
P2B
(1)
/T1CKI/T1OSO/RC0
P2A
(1)
/CCP2
(1)
/T1OSI/RC1
SEG3/P1A/CCP1/RC2
SEG6/SCL/SCK/RC3
1
2
3
PIC16F1933/1936/1938
4
5
6
7
8
9
10
11
12
13
14
PIC16LF1933/1936/1938
28
27
26
25
24
23
22
21
20
19
18
17
16
15
RB7/ICSPDAT/ICDDAT/SEG13
RB6/ICSPCLK/ICDCLK/SEG14
RB5/AN13/CPS5/P2B
(1)
/CCP3
(1)
/P3A
(1)
/T1G
(1)
/COM1
RB4/AN11/CPS4/P1D/COM0
RB3/AN9/C12IN2-/CPS3/CCP2
(1)
/P2A
(1)
/VLCD3
RB2/AN8/CPS2/P1B/VLCD2
RB1/AN10/C12IN3-/CPS1/P1C/VLCD1
RB0/AN12/CPS0/CCP4/SRI/INT/SEG0
V
DD
V
SS
RC7/RX/DT/P3B/SEG8
RC6/TX/CK/CCP3
(1)
/P3A
(1)
/SEG9
RC5/SDO/SEG10
RC4/SDI/SDA/T1G
(1)
/SEG11
Note
1:
2:
Pin function is selectable via the APFCON register.
PIC16F193X devices only.
©
2008 Microchip Technology Inc.
Preliminary
DS41364A-page 3