參數(shù)資料
型號: PIC16CE623T-30/SO
廠商: Microchip Technology
文件頁數(shù): 50/100頁
文件大?。?/td> 0K
描述: IC MCU OTP 512X14 EE COMP 18SOIC
標(biāo)準(zhǔn)包裝: 1,100
系列: PIC® 16C
核心處理器: PIC
芯體尺寸: 8-位
速度: 30MHz
外圍設(shè)備: 欠壓檢測/復(fù)位,POR,WDT
輸入/輸出數(shù): 13
程序存儲器容量: 896B(512 x 14)
程序存儲器類型: OTP
EEPROM 大?。?/td> 128 x 8
RAM 容量: 96 x 8
電壓 - 電源 (Vcc/Vdd): 3 V ~ 5.5 V
振蕩器型: 外部
工作溫度: 0°C ~ 70°C
封裝/外殼: 18-SOIC(0.295",7.50mm 寬)
包裝: 帶卷 (TR)
其它名稱: PIC16CE623T30/SO
1999 Microchip Technology Inc.
DS40182C-page 43
PIC16CE62X
The code example in Example 8-1 depicts the steps
required to configure the comparator module. RA3 and
RA4 are configured as digital output. RA0 and RA1 are
configured as the V- inputs and RA2 as the V+ input to
both comparators.
EXAMPLE 8-1:
INITIALIZING
COMPARATOR MODULE
8.2
Comparator Operation
A single comparator is shown in Figure 8-2 along with
the relationship between the analog input levels and
the digital output. When the analog input at VIN+ is less
than the analog input VIN–, the output of the
comparator is a digital low level. When the analog input
at VIN+ is greater than the analog input VIN–, the output
of the comparator is a digital high level. The shaded
areas of the output of the comparator in Figure 8-2
represent the uncertainty due to input offsets and
response time.
FLAG_REG EQU
0X20
CLRF
FLAG_REG
;Init flag register
CLRF
PORTA
;Init PORTA
MOVF
CMCON,W
;Move comparator contents to W
ANDLW
0xC0
;Mask comparator bits
IORWF
FLAG_REG,F
;Store bits in flag register
MOVLW
0x03
;Init comparator mode
MOVWF
CMCON
;CM<2:0> = 011
BSF
STATUS,RP0
;Select Bank1
MOVLW
0x07
;Initialize data direction
MOVWF
TRISA
;Set RA<2:0> as inputs
;RA<4:3> as outputs
;TRISA<7:5> always read ‘0’
BCF
STATUS,RP0
;Select Bank 0
CALL
DELAY 10
;10
s delay
MOVF
CMCON,F
;Read CMCON toend change condition
BCF
PIR1,CMIF
;Clear pending interrupts
BSF
STATUS,RP0
;Select Bank 1
BSF
PIE1,CMIE
;Enable comparator interrupts
BCF
STATUS,RP0
;Select Bank 0
BSF
INTCON,PEIE
;Enable peripheral interrupts
BSF
INTCON,GIE
;Global interrupt enable
8.3
Comparator Reference
An external or internal reference signal may be used
depending on the comparator operating mode. The
analog signal that is present at VIN– is compared to the
signal at VIN+, and the digital output of the comparator
is adjusted accordingly (Figure 8-2).
FIGURE 8-2:
SINGLE COMPARATOR
8.3.1
EXTERNAL REFERENCE SIGNAL
When external voltage references are used, the
comparator module can be configured to have the com-
parators operate from the same or different reference
sources. However, threshold detector applications may
require the same reference. The reference signal must
be between VSS and VDD and can be applied to either
pin of the comparator(s).
8.3.2
INTERNAL REFERENCE SIGNAL
The comparator module also allows the selection of an
internally
generated
voltage
reference
for
the
comparators. Section 13, Instruction Sets, contains a
detailed description of the Voltage Reference Module
that provides this signal. The internal reference signal
is
used
when
the
comparators
are
in
mode
CM<2:0>=010 (Figure 8-1). In this mode, the internal
voltage reference is applied to the VIN+ pin of both
comparators.
+
VIN+
VIN
Output
VIN–
VIN+
Output
VIN+
VIN
Output
相關(guān)PDF資料
PDF描述
PIC16F1825-E/ML MCU PIC 14K FLASH 1K RAM 16QFN
PIC16F1828-I/SO IC PIC MCU 8BIT 14KB FLSH 20SOIC
PIC16F688-I/SL IC PIC MCU FLASH 4KX14 14SOIC
22-02-3213 CONN FFC/FPC VERTICAL 21POS .100
22-15-3193 CONN FFC/FPC 19POS .100 RT ANG
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC16CE624/JW 功能描述:8位微控制器 -MCU 1.75KB 96 RAM 13 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16CE624-04/P 功能描述:8位微控制器 -MCU 1.75KB 96 RAM 13 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16CE624-04/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT CMOS MCU 16CE624 DIP18
PIC16CE624-04/SO 功能描述:8位微控制器 -MCU 1.75KB 96 RAM 13 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT
PIC16CE624-04/SS 功能描述:8位微控制器 -MCU 1.75KB 96 RAM 13 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風(fēng)格:SMD/SMT