ST7FLITE02 STMICROELECTRONICS [STMicroelectronics], ST7FLITE02 Datasheet - Page 73

no-image

ST7FLITE02

Manufacturer Part Number
ST7FLITE02
Description
8-BIT MICROCONTROLLER WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST7FLITE02M6
Manufacturer:
ST
0
Part Number:
ST7FLITE02M6 1
Manufacturer:
ST
0
Part Number:
ST7FLITE02Y0B6
Manufacturer:
ST
0
Part Number:
ST7FLITE02Y0M6
Manufacturer:
ST
Quantity:
5 262
Part Number:
ST7FLITE02YDB6
Manufacturer:
STM
Quantity:
3 867
Part Number:
ST7FLITE02YDB6
Manufacturer:
ST
0
Part Number:
ST7FLITE02YOM6
Manufacturer:
ST
0
8-BIT A/D CONVERTER (ADC) (Cont’d)
11.4.3.3 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.4.3.4 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.4.3.5 Software Procedure
Refer to the control/status register (CSR) and data
register (DR) in
tions and to
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.
The total conversion time:
t
CONV =
DDA
is the maximum recommended impedance
(low-level voltage reference) then the con-
(high-level voltage reference) then the
t
SAMPLE
ADC
Figure 44
sample capacitor is disconnected
Section 11.4.6
AIN
+ t
Figure
HOLD
AIN
) is lower than or equal to
for the timings.
) is greater than or equal
AIN
44:
HOLD
input voltage to be
for the bit defini-
]
ADC
SAMPLE
sample
]
ADC Configuration
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 ADCCSR register (with ADON set)
aborts the current conversion, resets the EOC bit
and starts a new conversion.
Figure 44. ADC Conversion Timings
11.4.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.4.5 Interrupts
None
WAIT
HALT
ADON
HOLD
CONTROL
– Select the CH[2:0] bits to assign the analog
– Set the ADON bit to enable the A/D converter
– The EOC 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
SAMPLE
No effect on A/D Converter
A/D Converter disabled.
After wakeup from Halt mode, the A/D Con-
verter requires a stabilization time before ac-
curate conversions can be performed.
t
CONV
t
HOLD
ST7LITE0x, ST7LITESx
EOC BIT SET
Description
ADCCSR WRITE
OPERATION
73/125
1

Related parts for ST7FLITE02