English
Language : 

MC68HC705JJ7 Datasheet, PDF (82/164 Pages) Freescale Semiconductor, Inc – Microcontrollers
Analog Subsystem
these bits and the ISEN bit are cleared when the device is reset, the MC68HC705JJ7/MC68HC705JP7
starts with the charge and discharge function disabled.
The length of time required to reach the maximum voltage to be measured and the speed of the time
counting mechanism will determine the resolution of the reading. The time to ramp the external capacitor
voltage to match the maximum voltage is dependent on:
• Charging current to external capacitor
• Value of the external capacitor
• Clock rate for timing function
• Any prescaling of the clock to the timing function
• Desired resolution
The charging behavior is described by the general equation:
tCHG = CEXT x VX / ICHG
Where:
tCHG= Charge time (seconds)
CEXT= Capacitance (µF)
VX= Unknown voltage (volts)
ICHG= Charge current (µA)
Since the MCU can measure time in a variety of ways, the resolution of the conversion will depend on the
length of the time keeping function and its prescaling to the oscillator frequency (fOSC). Therefore, the
charge time also equals:
tCHG = P x N / fOSC
Where:
P= Prescaler value (÷ 2, ÷ 4, ÷ 8, etc.)
N= Number of counts during charge time
fOSC= Oscillator clock frequency (Hz)
NOTE
Noise on the system ground or the external ramping capacitor can cause
the comparator to trip prematurely. Therefore, in any given application it is
best to use the fastest possible ramp rate (shortest charge time).
The previous two equations for the charge time, tCHG, can be combined to form the following expression
for the full scale count (NFS) of the measured time versus the full scale unknown voltage (VFS):
NFS = CEXT x VFS x fOSC / (P x ICHG)
Since a given timing method has a fixed charge current and prescaler, then the variation in the resultant
count for a given unknown voltage is mainly dependent on the operating frequency and the capacitance
value used. The desired external capacitance for a given voltage range, fOSC, conversion method, and
resolution is defined as:
CEXT = NFS x P x ICHG / (VFS x fOSC)
NOTE
The value of any capacitor connected directly to the PB0/AN0 pin should be
limited to less than 2 microfarads. Larger capacitances will create high
discharge currents which may damage the device or create signal noise.
MC68HC705JJ7 • MC68HC705JP7 Advance Information Data Sheet, Rev. 4.1
82
Freescale Semiconductor