PIC12LF1840-E/MF Microchip Technology, PIC12LF1840-E/MF Datasheet - Page 154
![7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core, Nano](/photos/16/0/160077/dfn8_sml.jpg)
PIC12LF1840-E/MF
Manufacturer Part Number
PIC12LF1840-E/MF
Description
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core, Nano
Manufacturer
Microchip Technology
Series
PIC® XLP™ 12Fr
Datasheet
1.PIC12F1840-EMF.pdf
(382 pages)
Specifications of PIC12LF1840-E/MF
Processor Series
PIC12F
Core
PIC
Program Memory Type
Flash
Program Memory Size
7 KB
Data Ram Size
256 B
Interface Type
MI2C, SPI, EUSART
Number Of Timers
3
Operating Supply Voltage
1.8 V to 5.5 V
Maximum Operating Temperature
+ 125 C
Mounting Style
SMD/SMT
Package / Case
DFN-8
Development Tools By Supplier
MPLAB IDE Software
Minimum Operating Temperature
- 40 C
Core Processor
RISC
Core Size
8-Bit
Speed
32MHz
Connectivity
I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
5
Eeprom Size
256 x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 3.6 V
Data Converters
A/D 4x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Lead Free Status / Rohs Status
Details
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC12LF1840-E/MF
Manufacturer:
MICROCHIP
Quantity:
12 000
- Current page: 154 of 382
- Download datasheet (4Mb)
PIC12(L)F1840
19.3
A selectable amount of separation voltage can be
added to the input pins of each comparator to provide a
hysteresis function to the overall operation. Hysteresis
is enabled by setting the C1HYS bit of the CM1CON0
register.
See Section 30.0 “Electrical Specifications” for
more information.
19.4
The output resulting from a comparator operation can
be used as a source for gate control of Timer1. See
Section 21.6 “Timer1 Gate” for more information.
This feature is useful for timing the duration or interval
of an analog event.
It is recommended that the comparator output be syn-
chronized to Timer1. This ensures that Timer1 does not
increment while a change in the comparator is occur-
ring.
19.4.1
The output from comparator C1 can be synchronized
with Timer1 by setting the C1SYNC bit of the
CM1CON0 register.
Once enabled, the comparator output is latched on the
falling edge of the Timer1 source clock. If a prescaler is
used with Timer1, the comparator output is latched after
the prescaling function. To prevent a race condition, the
comparator output is latched on the falling edge of the
Timer1 clock source and Timer1 increments on the
rising edge of its clock source. See the Comparator
Block Diagram
Diagram
DS41441B-page 154
Comparator Hysteresis
Timer1 Gate Operation
(Figure
COMPARATOR OUTPUT
SYNCHRONIZATION
(Figure
21-1) for more information.
19-2) and the Timer1 Block
Preliminary
19.5
An interrupt can be generated upon a change in the
output value of the comparator for each comparator, a
rising edge detector and a Falling edge detector are
present.
When either edge detector is triggered and its associ-
ated enable bit is set (C1INTP and/or C1INTN bits of
the CM1CON1 register), the Corresponding Interrupt
Flag bit (C1IF bit of the PIR2 register) will be set.
To enable the interrupt, you must set the following bits:
• C1ON, C1POL and C1SP bits of the CM1CON0
• C1IE bit of the PIE2 register
• C1INTP bit of the CM1CON1 register (for a rising
• C1INTN bit of the CM1CON1 register (for a falling
• PEIE and GIE bits of the INTCON register
The associated interrupt flag bit, C1IF bit of the PIR2
register, must be cleared in software. If another edge is
detected while this flag is being cleared, the flag will still
be set at the end of the sequence.
19.6
Configuring the C1PCH<1:0> bits of the CM1CON1
register directs an internal voltage reference or an
analog pin to the non-inverting input of the comparator:
• C1IN+ analog pin
• DAC
• FVR (Fixed Voltage Reference)
• V
See
for more information on the Fixed Voltage Reference
module.
See
(DAC) Module”
signal.
Any time the comparator is disabled (C1ON = 0), all
comparator inputs are disabled.
register
edge detection)
edge detection)
Note:
SS
Section 14.0 “Fixed Voltage Reference (FVR)”
Section 17.0 “Digital-to-Analog
(Ground)
Comparator Interrupt
Comparator Positive Input
Selection
Although a comparator is disabled, an
interrupt can be generated by changing
the output polarity with the C1POL bit of
the CM1CON0 register, or by switching
the comparator on or off with the C1ON bit
of the CM1CON0 register.
for more information on the DAC input
2011 Microchip Technology Inc.
Converter
Related parts for PIC12LF1840-E/MF
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![TC1014-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1014-5.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.8VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-4.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.85VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: