English
Language : 

HT68F016 Datasheet, PDF (83/116 Pages) Holtek Semiconductor Inc – Enhanced Flash Type 8-Bit MCU with EEPROM
HT66F016/HT66F017/HT68F016/HT68F017
· CPC Register
Bit
7
6
5
4
3
2
Name
CSEL
CEN
CPOL
COUT
COS
¾
R/W
R/W
R/W
R/W
R
R/W
¾
POR
1
0
0
0
0
¾
1
0
¾
CHYEN
¾
R/W
¾
1
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2~1
Bit 0
CSEL: Select Comparator pins or I/O pins
0: I/O pin select
1: Comparator pin select
This is the Comparator pin or I/O pin select bit. If the bit is high the comparator will be selected
and the two comparator input pins will be enabled. As a result, these two pins will lose their I/O
pin functions. Any pull-high configuration options associated with the comparator shared pins will
also be automatically disconnected.
CEN: Comparator On/Off control
0: Off
1: On
This is the Comparator on/off control bit. If the bit is zero the comparator will be switched off
and no power consumed even if analog voltages are applied to its inputs. For power sensitive
applications this bit should be cleared to zero if the comparator is not used or before the device
enters the SLEEP or IDLE mode.
CPOL: Comparator output polarity
0: output not inverted
1: output inverted
This is the comparator polarity bit. If the bit is zero then the COUT bit will reflect the
non-inverted output condition of the comparator. If the bit is high the comparator COUT bit will
be inverted.
COUT: Comparator output bit
CPOL=0
0: C+ < C-
1: C+ > C-
CPOL=1
0: C+ > C-
1: C+ < C-
This bit stores the comparator output bit. The polarity of the bit is determined by the voltages
on the comparator inputs and by the condition of the CPOL bit.
CS: Output path select
0: CX pin
1: Internal use
This is the comparator output path select control bit. If the bit is set to ²0² and the CSEL bit is
²1² the comparator output is connected to an external CX pin. If the bit is set to ²1² or the
CSEL bit is ²0² the comparator output signal is only used internally by the device allowing the
shared comparator output pin to retain its normal I/O operation.
unimplemented, read as ²0²
CHYEN: Hysteresis Control
0: Off
1: On
This is the hysteresis control bit and if set high will apply a limited amount of hysteresis to the
comparator, as specified in the Comparator Electrical Characteristics table. The positive feedback
induced by hysteresis reduces the effect of spurious switching near the comparator threshold.
Rev. 1.00
83
May 14, 2012