English
Language : 

MC68HC705JJ7 Datasheet, PDF (93/164 Pages) Freescale Semiconductor, Inc – Microcontrollers
Current Source Features
8.7.2 Voltage Comparator 2
Voltage comparator 2 can be used as a simple comparator if its charge current source and discharge
device are disabled by clearing the ISEN bit in the ACR. If the ISEN bit is set, the internal ramp discharge
device connected to PB0/AN0 may become active and try to pull down any voltage source that may be
connected to that pin. Also, since voltage comparator 2 is always connected to two of the port B I/O pins,
these pins should be configured as inputs and have their software programmable pulldowns disabled.
8.8 Current Source Features
The internal current source connected to the PB0/AN0 pin supplies about 100 µA of current when the
discharge device is disabled and the current source is active. Therefore, this current source can be used
in an application if the ISEN enable bit is set to power up the current source and by setting the A/D
conversion method to manual mode 0 (ATD1 and ATD2 cleared) and the charge current enabled (CHG
set).
8.9 Internal Temperature Sensing Diode Features
An internal diode is forward biased to VSS and will have its voltage change, VD, for each degree
centigrade rise in the temperature of the device. This temperature sensing diode is powered up from a
current source only during the time that the diode is selected. When on, this current source typically adds
about 30 µA to the IDD current.
The temperature sensing diode can be selected by setting both the HOLD and DHOLD bits in the AMUX
register (see 8.2 Analog Multiplex Register).
8.10 Sample and Hold
When using the internal sample capacitor to capture a voltage for later conversion, the HOLD or DHOLD
bit must be cleared first before changing any channel selection. If both the HOLD (or DHOLD) bit and the
channel selection are changed on the same write cycle, the sample may be corrupted during the switching
transitions.
NOTE
The sample capacitor can be affected by excessive noise created with
respect to the device’s VSS pin such that it may appear to leak down or
charge up depending on the voltage level stored on the sample capacitor.
It is recommended to avoid switching large currents through the port pins
while a voltage is to remain stored on the sample capacitor.
The additional option of adding an offset voltage to the bottom of the sample capacitor allows unknown
voltages near VSS to be sampled and then shifted up past the comparator offset and the device offset
caused by a single VSS return pin. This offset also provides a means to measure the internal VSS level
regardless of the comparator offset to determine NOFF as described in 8.6 Voltage Measurement
Methods. In either case the OPT bit must be set in the COPR located at $1FF0 as in Figure 8-12 and the
VOFF bit must be set in the ASR. It is not necessary to switch the VOFF bit during conversions, since the
offset is controlled by the HOLD and DHOLD bits when the VOFF is active. Refer to 8.2 Analog Multiplex
Register for more details on the design and decoding of the sample and hold circuit.
MC68HC705JJ7 • MC68HC705JP7 Advance Information Data Sheet, Rev. 4.1
Freescale Semiconductor
93