Electronic Components Datasheet Search
  English  ▼

X  

12F615 Datasheet(PDF) 58 Page - Microchip Technology

Part # 12F615
Description  8-Pin Flash-Based, 8-Bit CMOS Microcontrollers
PDF  168 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

12F615 Datasheet(HTML) 58 Page - Microchip Technology

Back Button 12F615 Datasheet HTML 54Page - Microchip Technology 12F615 Datasheet HTML 55Page - Microchip Technology 12F615 Datasheet HTML 56Page - Microchip Technology 12F615 Datasheet HTML 57Page - Microchip Technology 12F615 Datasheet HTML 58Page - Microchip Technology 12F615 Datasheet HTML 59Page - Microchip Technology 12F615 Datasheet HTML 60Page - Microchip Technology 12F615 Datasheet HTML 61Page - Microchip Technology 12F615 Datasheet HTML 62Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 58 / 168 page
background image
PIC12F609/615/12HV609/615
DS41302A-page 56
Preliminary
© 2006 Microchip Technology Inc.
8.5
Comparator Interrupt Operation
The comparator interrupt flag can be set whenever
there is a change in the output value of the comparator.
Changes are recognized by means of a mismatch
circuit
which
consists
of
two
latches
and
an
exclusive-or gate (see Figure 8-4 and Figure 8-5). One
latch is updated with the comparator output level when
the CMCON0 register is read. This latch retains the
value until the next read of the CMCON0 register or the
occurrence of a Reset. The other latch of the mismatch
circuit is updated on every Q1 system clock. A
mismatch condition will occur when a comparator
output change is clocked through the second latch on
the Q1 clock cycle. At this point the two mismatch
latches have opposite output levels which is detected
by the exclusive-or gate and fed to the interrupt
circuitry. The mismatch condition persists until either
the CMCON0 register is read or the comparator output
returns to the previous state.
The comparator interrupt is set by the mismatch edge
and not the mismatch level. This means that the
interrupt flag can be reset without the additional step of
reading or writing the CMCON0 register to clear the
mismatch registers. When the mismatch registers are
cleared, an interrupt will occur upon the comparator’s
return to the previous state, otherwise no interrupt will
be generated.
Software will need to maintain information about the
status of the comparator output, as read from the
CMCON1 register, to determine the actual change that
has occurred.
The CMIF bit of the PIR1 register is the Comparator
Interrupt flag. This bit must be reset in software by
clearing it to ‘0’. Since it is also possible to write a '1' to
this register, an interrupt can be generated.
The CMIE bit of the PIE1 register and the PEIE and GIE
bits of the INTCON register must all be set to enable
comparator interrupts. If any of these bits are cleared,
the interrupt is not enabled, although the CMIF bit of
the PIR1 register will still be set if an interrupt condition
occurs.
FIGURE 8-4:
COMPARATOR
INTERRUPT TIMING W/O
CMCON0 READ
FIGURE 8-5:
COMPARATOR
INTERRUPT TIMING WITH
CMCON0 READ
Note 1: A write operation to the CMCON0 register
will also clear the mismatch condition
because all writes include a read opera-
tion at the beginning of the write cycle.
2: Comparator interrupts will operate cor-
rectly regardless of the state of CMOE.
Note 1: If a change in the CMCON0 register
(COUT) should occur when a read
operation is being executed (start of the
Q2 cycle), then the CMIF of the PIR1
register interrupt flag may not get set.
2: When a comparator is first enabled, bias
circuitry in the comparator module may
cause
an
invalid
output
from
the
comparator until the bias circuitry is
stable. Allow about 1
μs for bias settling
then clear the mismatch condition and
interrupt
flags
before
enabling
comparator interrupts.
Q1
Q3
CIN+
COUT
Set CMIF (edge)
CMIF
TRT
reset by software
Q1
Q3
CIN+
COUT
Set CMIF (edge)
CMIF
TRT
reset by software
cleared by CMCON0 read



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com