ST72215G2 STMicroelectronics, ST72215G2 Datasheet - Page 87

no-image

ST72215G2

Manufacturer Part Number
ST72215G2
Description
8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY,ADC, 16-BIT TIMERS, SPI, I2C INTERFACES
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST72215G2

Emulation Voltage
5.5 V
8-BIT A/D CONVERTER (ADC) (Cont’d)
11.5.3.2 Digital A/D Conversion Result
The conversion is monotonic, meaning that the re-
sult never decreases if the analog input does not
and never increases if the analog input does not.
If the input voltage (V
to V
conversion result in the DR register is FFh (full
scale) without overflow indication.
If input voltage (V
V
version result in the DR register is 00h.
The A/D converter is linear and the digital result of
the conversion is stored in the ADCDR register.
The accuracy of the conversion is described in the
parametric section.
R
for an analog input signal. If the impedance is too
high, this will result in a loss of accuracy due to
leakage and sampling not being completed in the
alloted time.
11.5.3.3 A/D Conversion Phases
The A/D conversion is based on two conversion
phases as shown in
While the ADC is on, these two phases are contin-
uously repeated.
At the end of each conversion, the sample capaci-
tor is kept loaded with the previous measurement
load. The advantage of this behaviour is that it
minimizes the current consumption on the analog
pin in case of single input channel measurement.
11.5.3.4 Software Procedure
Refer to the control/status register (CSR) and data
register (DR) in
and to
ADC Configuration
The total duration of the A/D conversion is 12 ADC
clock periods (1/f
SSA
AIN
Sample capacitor loading [duration: t
During this phase, the V
measured is loaded into the C
capacitor.
A/D conversion [duration: t
During this phase, the A/D conversion is
computed (8 successive approximations cycles)
and the C
from the analog input pin to get the optimum
analog to digital conversion accuracy.
DDA
is the maximum recommended impedance
(low-level voltage reference) then the con-
Figure 2
(high-level voltage reference) then the
ADC
for the timings.
Section 0.1.6
sample capacitor is disconnected
ADC
AIN
Figure
=2/f
AIN
) is lower than or equal to
) is greater than or equal
CPU
AIN
2:
).
CONV
for the bit definitions
input voltage to be
]
ADC
LOAD
sample
]
ST72104Gx, ST72215Gx, ST72216Gx, ST72254Gx
The analog input ports must be configured as in-
put, no pull-up, no interrupt. Refer to the «I/O
ports» chapter. Using these pins as analog inputs
does not affect the ability of the port to be read as
a logic input.
In the CSR register:
ADC Conversion
In the CSR register:
When a conversion is complete
A write to the CSR register (with ADON set) aborts
the current conversion, resets the COCO bit and
starts a new conversion.
Figure 48. ADC Conversion Timings
11.5.4 Low Power Modes
Note: The A/D converter may be disabled by reset-
ting the ADON bit. This feature allows reduced
power consumption when no conversion is needed
and between single shot conversions.
11.5.5 Interrupts
None
WAIT
HALT
ADON
HOLD
CONTROL
– Select the CH[3:0] bits to assign the analog
– Set the ADON bit to enable the A/D converter
– The COCO bit is set by hardware.
– No interrupt is generated.
– The result is in the DR register and remains
Mode
channel to be converted.
and to start the first conversion. From this time
on, the ADC performs a continuous conver-
sion of the selected channel.
valid until the next conversion has ended.
t
LOAD
No effect on A/D Converter
A/D Converter disabled.
After wakeup from Halt mode, the A/D Con-
verter requires a stabilisation time before ac-
curate conversions can be performed.
t
CONV
COCO BIT SET
Description
ADCCSR WRITE
OPERATION
87/141

Related parts for ST72215G2