st72324bk STMicroelectronics, st72324bk Datasheet - Page 102

no-image

st72324bk

Manufacturer Part Number
st72324bk
Description
3 V/5 V Range 8-bit Mcu With 4/8 Kbyte Rom, 10-bit Adc, Four Timers And Spi
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
st72324bk6
Manufacturer:
ST
0
Part Number:
st72324bk6/MFNTR
Manufacturer:
ST
0
Part Number:
st72324bk6TA
Manufacturer:
FREESCALE
Quantity:
201
Part Number:
st72324bk6TA
Manufacturer:
ST
0
On-chip peripherals
9.5.3
Note:
102/167
Functional description
The conversion is monotonic, meaning that the result never decreases if the analog input
does not and never increases if the analog input does not.
If the input voltage (V
conversion result is FFh in the ADCDRH register and 03h in the ADCDRL register (without
overflow indication).
If the input voltage (V
conversion result in the ADCDRH and ADCDRL registers is 00 00h.
The A/D converter is linear and the digital result of the conversion is stored in the ADCDRH
and ADCDRL registers. The accuracy of the conversion is described in the Electrical
Characteristics Section.
R
is too high, this will result in a loss of accuracy due to leakage and sampling not being
completed in the allocated time.
A/D converter configuration
The analog input ports must be configured as input, no pull-up, no interrupt. Refer to
Section 8: I/O
to be read as a logic input.
In the ADCCSR register:
Starting the conversion
In the ADCCSR register:
When a conversion is complete:
A read to the ADCDRH resets the EOC bit.
To read the 10 bits, perform the following steps:
1.
2.
3.
The data is not latched, so both the low and the high data register must be read before the
next conversion is complete, so it is recommended to disable interrupts while reading the
conversion result.
To read only 8 bits, perform the following steps:
1.
2.
AIN
Select the CS[3:0] bits to assign the analog channel to convert.
Set the ADON bit to enable the A/D converter and to start the conversion. From this
time on, the ADC performs a continuous conversion of the selected channel.
Poll the EOC bit
Read the ADCDRL register
Read the ADCDRH register. This clears EOC automatically.
Poll the EOC bit
Read the ADCDRH register. This clears EOC automatically.
is the maximum recommended impedance for an analog input signal. If the impedance
The EOC bit is set by hardware.
The result is in the ADCDR registers.
ports. Using these pins as analog inputs does not affect the ability of the port
AIN
AIN
) is greater than V
) is lower than V
SSA
AREF
(low-level voltage reference) then the
(high-level voltage reference) then the
ST72323 ST72323L

Related parts for st72324bk