参数资料
型号: PIC16C620A-04/P301
元件分类: 微控制器/微处理器
英文描述: 8-BIT, OTPROM, 4 MHz, RISC MICROCONTROLLER, PDIP18
封装: 0.300 INCH, PLASTIC, DIP-18
文件页数: 45/108页
文件大小: 674K
代理商: PIC16C620A-04/P301
1998 Microchip Technology Inc.
Preliminary
DS30235G-page 41
PIC16C62X
7.6
Comparator Interrupts
The comparator interrupt ag is set whenever there is
a change in the output value of either comparator.
Software will need to maintain information about the
status of the output bits, as read from CMCON<7:6>, to
determine the actual change that has occurred. The
CMIF bit, PIR1<6>, is the comparator interrupt ag.
The CMIF bit must be reset by clearing ‘0’. Since it is
also possible to write a '1' to this register, a simulated
interrupt may be initiated.
The
CMIE
bit
(PIE1<6>)
and
the
PEIE
bit
(INTCON<6>) must be set to enable the interrupt. In
addition, the GIE bit must also be set. If any of these
bits are clear, the interrupt is not enabled, though the
CMIF bit will still be set if an interrupt condition occurs.
The user, in the interrupt service routine, can clear the
interrupt in the following manner:
a)
Any read or write of CMCON. This will end the
mismatch condition.
b)
Clear ag bit CMIF.
A mismatch condition will continue to set ag bit CMIF.
Reading CMCON will end the mismatch condition, and
allow ag bit CMIF to be cleared.
7.7
Comparator Operation During SLEEP
When a comparator is active and the device is placed
in SLEEP mode, the comparator remains active and
the interrupt is functional if enabled. This interrupt will
Note:
If a change in the CMCON register
(C1OUT or C2OUT) should occur when a
read operation is being executed (start of
the Q2 cycle), then the CMIF (PIR1<6>)
interrupt ag may not get set.
wake up the device from SLEEP mode when enabled.
While the comparator is powered-up, higher sleep
currents than shown in the power down current
specication will occur. Each comparator that is
operational will consume additional current as shown in
the comparator specications. To minimize power
consumption while in SLEEP mode, turn off the
comparators, CM<2:0> = 111, before entering sleep. If
the device wakes-up from sleep, the contents of the
CMCON register are not affected.
7.8
Effects of a RESET
A device reset forces the CMCON register to its reset
state. This forces the comparator module to be in the
comparator
reset
mode,
CM2:CM0 = 000.
This
ensures that all potential inputs are analog inputs.
Device current is minimized when analog inputs are
present at reset time. The comparators will be
powered-down during the reset interval.
7.9
Analog Input Connection
Considerations
A simplied circuit for an analog input is shown in
Figure 7-5. Since the analog pins are connected to a
digital output, they have reverse biased diodes to VDD
and VSS. The analog input therefore, must be between
VSS and VDD. If the input voltage deviates from this
range by more than 0.6V in either direction, one of the
diodes is forward biased and a latch-up may occur. A
maximum
source
impedance
of
10 k
is
recommended for the analog sources. Any external
component connected to an analog input pin, such as
a capacitor or a Zener diode, should have very little
leakage current.
FIGURE 7-5:
ANALOG INPUT MODEL
VA
RS < 10K
AIN
CPIN
5 pF
VDD
VT = 0.6V
RIC
ILEAKAGE
±500 nA
VSS
Legend
CPIN
= Input Capacitance
VT
= Threshold Voltage
ILEAKAGE
= Leakage Current At The Pin Due To Various Junctions
RIC
= Interconnect Resistance
RS
= Source Impedance
VA
= Analog Voltage
相关PDF资料
PDF描述
PIC16C620A-20/P301 8-BIT, OTPROM, 20 MHz, RISC MICROCONTROLLER, PDIP18
PIC16LC620A-20/P 8-BIT, OTPROM, 20 MHz, RISC MICROCONTROLLER, PDIP18
PIC16C621-20/SS 8-BIT, OTPROM, 20 MHz, RISC MICROCONTROLLER, PDSO20
PIC16C622T-20I/SO 8-BIT, OTPROM, 20 MHz, RISC MICROCONTROLLER, PDSO18
PIC16LCR620AT-04I/SO 8-BIT, MROM, 4 MHz, RISC MICROCONTROLLER, PDSO18
相关代理商/技术参数
参数描述
PIC16C620A-20/P 功能描述:8位微控制器 -MCU .875KB 96 RAM 13 I/O 20 MHz PDIP18 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C620A-20/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT CMOS MCU 16C620 DIP18
PIC16C620A-20/SO 功能描述:8位微控制器 -MCU .875KB 96 RAM 13 I/O 20 MHz SOIC18 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C620A-20/SS 功能描述:8位微控制器 -MCU .875KB 96 RAM 13 I/O 20 MHz SSOP20 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C620A-20E/P 功能描述:8位微控制器 -MCU .875KB 96 RAM 13 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT