LS_Analog to digital convertor (ADC)
RM0082
650/844
Doc ID 018672 Rev 1
Because the frequency of ADC clock ranges from 3 MHz to 14 MHz, it follows that:
29.5.5 CHx
CTRL
register
The eight read/write Control registers are used only when enhanced mode is selected. They
activate the particular channel during the scan and select the number of samples for the
average. The CHx CTRL register bit assignments are given in
Note:
This register can be written to only if the ENABLE bit is reset.
Table 581.
CHx CTRL register bit assignments
29.5.6 CHx
DATA
register
The eight read-only Data registers are used only when enhanced mode is selected. They
contain the result of last conversion on relative channel. They have different bit assignments
according to the setting of the bit 13 (HIGH RESOLUTION) on the register
ADC_STATUS_REG (
).
The register bit assignments when the bit is reset are given in the
The register bit assignments when the bit is set are given in the
PB CLK Freq
14
--------------------------------------
⎝
⎠
⎛
⎞
ADC CLK H
ADC CLK L
+
(
)
APB CLK Freq
3
-------------------------------------------
⎝
⎠
⎛
⎞
≤
≤
Bit
Name
Reset
value
Type
Description
[15:04] -
-
-
reserved
[03:01] AVERAGE
3’h0
RW
Number of samples to be averaged.
This 3 bit field states the number of samples
to be collect for average computation,
according to encoding:
– 3‘b000 = No average, single data
conversion.
– 3‘b001 = Average of 2 samples.
– 3‘b010 = Average of 4 samples.
– 3‘b011 = Average of 8 samples.
– 3‘b100 = Average of 16 samples.
– 3‘b101 = Average of 32 samples.
– 3‘b110 = Average of 64 samples.
– 3‘b111 = Average of 128 samples.
[00]
CHANNEL ENABLE
1‘h0
RW
Enable the autoscan in enhanced mode:
1’b0 - No autoscan
1’b1 - autoscan