PIC16F1933-I/SP Microchip Technology Inc., PIC16F1933-I/SP Datasheet - Page 177

no-image

PIC16F1933-I/SP

Manufacturer Part Number
PIC16F1933-I/SP
Description
7KB Flash, 256B RAM, 256B EEPROM, LCD, 1.8-5.5V
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F1933-I/SP

A/d Inputs
11-Channel, 10-Bit
Comparators
2
Cpu Speed
8 MIPS
Eeprom Memory
256 Bytes
Input Output
25
Interface
I2C/SPI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
28-pin QFN
Programmable Memory
7K Bytes
Ram Size
256 Bytes
Speed
32 MHz
Timers
4-8-bit, 1-16-bit
Voltage, Range
1.8-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F1933-I/SP
Manufacturer:
NXP
Quantity:
1 000
Part Number:
PIC16F1933-I/SP
Manufacturer:
MICROCHI
Quantity:
20 000
17.2
Each comparator has 2 control registers: CMxCON0 and
CMxCON1.
The CMxCON0 registers (see Register 17-1) contain
Control and Status bits for the following:
• Enable
• Output selection
• Output polarity
• Speed/Power selection
• Hysteresis enable
• Output synchronization
The CMxCON1 registers (see Register 17-2) contain
Control bits for the following:
• Interrupt enable
• Interrupt edge polarity
• Positive input channel selection
• Negative input channel selection
17.2.1
Setting the CxON bit of the CMxCON0 register enables
the comparator for operation. Clearing the CxON bit
disables the comparator resulting in minimum current
consumption.
17.2.2
The output of the comparator can be monitored by
reading either the CxOUT bit of the CMxCON0 register
or the MCxOUT bit of the CMOUT register. In order to
make the output available for an external connection,
the following conditions must be true:
• CxOE bit of the CMxCON0 register must be set
• Corresponding TRIS bit must be cleared
• CxON bit of the CMxCON0 register must be set
 2009 Microchip Technology Inc.
Note 1: The CxOE bit of the CMxCON0 register
2: The internal output of the comparator is
Comparator Control
COMPARATOR ENABLE
COMPARATOR OUTPUT
SELECTION
overrides the PORT data latch. Setting
the CxON bit of the CMxCON0 register
has no impact on the port override.
latched with each instruction cycle.
Unless otherwise specified, external
outputs are not latched.
Preliminary
17.2.3
Inverting the output of the comparator is functionally
equivalent to swapping the comparator inputs. The
polarity of the comparator output can be inverted by
setting the CxPOL bit of the CMxCON0 register.
Clearing the CxPOL bit results in a non-inverted output.
Table 17-1 shows the output state versus input
conditions, including polarity control.
TABLE 17-1:
17.2.4
The trade-off between speed or power can be opti-
mized during program execution with the CxSP control
bit. The default state for this bit is ‘1’ which selects the
normal speed mode. Device power consumption can
be optimized at the cost of slower comparator propaga-
tion delay by clearing the CxSP bit to ‘0’.
PIC16F193X/LF193X
Input Condition
CxV
CxV
CxV
CxV
N
N
N
N
> CxV
< CxV
> CxV
< CxV
COMPARATOR OUTPUT POLARITY
COMPARATOR SPEED/POWER
SELECTION
P
P
P
P
COMPARATOR OUTPUT
STATE VS. INPUT
CONDITIONS
CxPOL
0
0
1
1
DS41364D-page 177
CxOUT
0
1
0
1

Related parts for PIC16F1933-I/SP