August 27, 1998
GENERAL RELEASE SPECIFICATION
CHG
The CHG enable bit allows direct control of the charge current source and the
discharge device; and also reflects the state of the discharge device. This bit is
cleared if the ISEN enable bit is also cleared. This bit is cleared by a reset of
the device.
1 = The charge current source is sourcing current out of the CAP pin.
Writing a logical one enables the charging current out of the CAP
pin, if the ISEN bit is also set.
0 = The discharge device is sinking current into the CAP pin. Writing a
logical zero disables the charging current and enables the
discharging current into the CAP pin.
ATD1:2
The ATD1:2 enable bits select one of the four operating modes used for making
A/D conversions via the single-slope method.These four modes are given in
Table 15-3. These bits have no effect if the ISEN enable bit is cleared. These
bits are cleared by a reset of the device; and thereby returning the analog sub-
system to the manual A/D conversion method.
Table 15-3. A/D Conversion Options
A/D
Option
Mode
A/D Options
Charge
Current Flow To/From CAP
Control
ISEN ATD2 ATD1 CHG
Current
Source and
Discharge
Disabled
Current control disabled, no source or sink cur-
rent.
Disabled
0
X
X
X
Begin sinking current when the CHG bit is
cleared; and continue to sink current until the
CHG bit is set.
1
1
0
0
0
0
0
1
Manual
Charge and
Discharge
0
Begin sourcing current when the CHG bit is set;
and continue to source current until the CHG bit is
cleared.
Begin sinking current when the CHG bit is
cleared; and continue to sink current until the
CHG bit is set. (The CHG bit is cleared by writing
a logical zero to it; or when the CPF flag bit is
set.)
1
1
0
0
1
1
0
1
Manual
Charge and
Automatic
Discharge
1
Begin sourcing current when the CHG bit is set;
and continue to source current until the CHG bit is
cleared. (The CHG bit is cleared by writing a logi-
cal zero to it; or when the CPF flag bit is set.)
The CHG bit remains cleared as long as current
is being sunk. Begin sourcing current when the
next Timer TOF occurs.
Automatic
Charge and
Discharge
(TOF-ICF)
Synchronized
to Timer
1
1
1
1
0
0
0
1
2
The CHG bit remains set as long as current is
being sourced. Begin sinking current when the
next Timer ICF occurs.
MC68HC05SB7
REV 2.1
ANALOG SUBSYSTEM
MOTOROLA
15-15