Electronic Components Datasheet Search
  English  ▼

X  

12F615 Datasheet(PDF) 57 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) 57 Page - Microchip Technology

Back Button 12F615 Datasheet HTML 53Page - Microchip Technology 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 57 / 168 page
background image
© 2006 Microchip Technology Inc.
Preliminary
DS41302A-page 55
PIC12F609/615/12HV609/615
8.3
Comparator Control
The comparator has two control and Configuration reg-
isters: CMCON0 and CMCON1. The CMCON1 register
is used for controlling the interaction with Timer1 and
simultaneously reading the comparator output.
The CMCON0 register (Register 8-1) contain the
control and Status bits for the following:
• Enable
• Input selection
• Reference selection
•Output selection
• Output polarity
8.3.1
COMPARATOR ENABLE
Setting the CMON bit of the CMCON0 register enables
the comparator for operation. Clearing the CMON bit
disables
the
comparator
for
minimum
current
consumption.
8.3.2
COMPARATOR INPUT SELECTION
The CMCH bit of the CMCON0 register directs one of
four analog input pins to the comparator inverting input.
8.3.3
COMPARATOR REFERENCE
SELECTION
Setting the CMR bit of the CMxCON0 register directs
an internal voltage reference or an analog input pin to
the non-inverting input of the comparator. See
Section 8.10 “Comparator Voltage Reference” for
more information on the internal voltage reference
module.
8.3.4
COMPARATOR OUTPUT
SELECTION
The output of the comparator can be monitored by
reading either the COUT bit of the CMCON0 register. In
order to make the output available for an external
connection, the following conditions must be true:
• CMOE bit of the CMxCON0 register must be set
• Corresponding TRIS bit must be cleared
• CMON bit of the CMCON0 register must be set.
8.3.5
COMPARATOR OUTPUT POLARITY
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 CMPOL bit of the CMCON0 register. Clear-
ing CMPOL results in a non-inverted output. A com-
plete table showing the output state versus input
conditions and the polarity bit is shown in Table 8-1.
TABLE 8-1:
OUTPUT STATE VS. INPUT
CONDITIONS
8.4
Comparator Response Time
The comparator output is indeterminate for a period of
time after the change of an input source or the selection
of a new reference voltage. This period is referred to as
the response time. The response time of the compara-
tor differs from the settling time of the voltage refer-
ence. Therefore, both of these times must be
considered when determining the total response time
to a comparator input change. See Section 15.0
“Electrical Specifications” for more details.
Note:
To use CIN+ and CIN- pins as analog
inputs, the appropriate bits must be set in
the ANSEL register and the corresponding
TRIS bits must also be set to disable the
output drivers.
Note 1: The CMOE bit overrides the PORT data
latch. Setting the CMON has no impact
on the port override.
2: The internal output of the comparator is
latched
with
each
instruction
cycle.
Unless
otherwise
specified,
external
outputs are not latched.
Input Conditions
CMPOL
COUT
CMVIN- > CMVIN+
00
CMVIN- < CMVIN+
01
CMVIN- > CMVIN+
11
CMVIN- < CMVIN+
10
Note:
COUT refers to both the register bit and
output pin.



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