Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC16F18323-E/RF Datasheet(PDF) 159 Page - Microchip Technology

Part # PIC16F18323-E/RF
Description  Full-Featured, Low Pin Count Microcontrollers with XLP
PDF  442 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F18323-E/RF Datasheet(HTML) 159 Page - Microchip Technology

Back Button PIC16F18323-E/RF Datasheet HTML 155Page - Microchip Technology PIC16F18323-E/RF Datasheet HTML 156Page - Microchip Technology PIC16F18323-E/RF Datasheet HTML 157Page - Microchip Technology PIC16F18323-E/RF Datasheet HTML 158Page - Microchip Technology PIC16F18323-E/RF Datasheet HTML 159Page - Microchip Technology PIC16F18323-E/RF Datasheet HTML 160Page - Microchip Technology PIC16F18323-E/RF Datasheet HTML 161Page - Microchip Technology PIC16F18323-E/RF Datasheet HTML 162Page - Microchip Technology PIC16F18323-E/RF Datasheet HTML 163Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 159 / 442 page
background image
 2015 Microchip Technology Inc.
Preliminary
DS40001799A-page 159
PIC16(L)F18313/18323
17.2
Comparator Control
Each comparator has two control registers: CMxCON0
and CMxCON1.
The CMxCON0 register (see Register 17-1) contains
Control and Status bits for the following:
• Enable
•Output
• Output polarity
• Speed/Power selection
• Hysteresis enable
• Timer1 output synchronization
The CMxCON1 register (see Register 17-2) contains
Control bits for the following:
• Interrupt on positive/negative edge enables
• Positive input channel selection
• Negative input channel selection
17.2.1
COMPARATOR ENABLE
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
COMPARATOR OUTPUT
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.
The comparator output can also be routed to an
external
pin
through
the
RxyPPS
register
(Register 12-2). The corresponding TRIS bit must be
clear to enable the pin as an output.
17.2.3
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 CxPOL bit of the CMxCON0 register.
Clearing the CxPOL bit results in a non-inverted output.
Table 17-2 shows the output state versus input
conditions, including polarity control.
Note 1:
The internal output of the comparator is
latched with each instruction cycle.
Unless otherwise specified, external out-
puts are not latched.
TABLE 17-2:
COMPARATOR OUTPUT
STATE VS. INPUT
CONDITIONS
Input Condition
CxPOL
CxOUT
CxVN > CxVP
00
CxVN < CxVP
01
CxVN > CxVP
11
CxVN < CxVP
10



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