User`s manual
RX62N Group, RX621 Group 4. Library Reference
Category
ADC
References
R_CGC_Set, R_ADC_10_Control, R_ADC_10_Read
Remarks
•
This function configures the selected pin(s) for ADC operation by setting the direction to input
and turning off the input buffer.
The port control settings for any ADC pins that subsequently become inactive are not modified.
•
This function brings the selected converter unit out of the power-down state.
•
Interrupts are enabled automatically if a callback function is specified.
Please see the notes on callback function usage in §6.
•
A callback function is executed by the interrupt processing function. This means that no other
interrupt can be processed until the callback function has completed.
•
Function R_CGC_Set must be called before any use of this function.
•
The available values for the conversion clock are PCLK ÷ 8, 4, 2 or 1. If the desired frequency is
not an exact match, the actual frequency will be the next highest frequency.
The timing limits depend on the peripheral module clock, PCLK. Use the table below with the
appropriate frequency for f
PCLK
.
Parameter Limit Equation
f
PCLK
(MHz)
50
12.5
48
12
32
8
Conversion clock
(ADCLK) / MHz
Minimum
(f
PCLK
÷ 8, 4, 2, 1) ≥ 4.0
6.25
6.25
6.0
6.0
4.0
4.0
Maximum
f
PCLK
50.00
12.50
48.00
12.00
32.00
8.00
Conversion time / µs
Maximum
25 ÷ ADCLK
4.0
4.0
4.17
4.17
6.25
6.25
Minimum
0.5
2.0
0.52
2.08
0.781
3.13
Sampling time
Minimum
-
0.5µs
Maximum
255 ÷ ADCLK
e.g. 5.1µs at 50 MHz
Total conversion time
/ µs
Minimum
Conversion time +
sampling time
1.0 2.5 1.02 2.58 1.28 3.63
•
The 12-bit ADC and 10-bit ADC must be used exclusively. If 12-bit ADC is already in use, this
function will return false.
•
If any of Self-Diagnostic-enabled options is selected, please do not select the Scan mode, Input
channel selection and Trigger selection. Their default settings will be used.
The user is expected to call R_ADC_10_Control and R_ADC_10_Read to get the conversion
result. Please refer to Section 5.11 for a usage example.
•
Simultaneous use of the ADC and DAC peripherals may affect ADC conversion accuracy.
Please refer to the Hardware Manual for countermeasures.
R20UT0084EE0112 Rev.1.12 Page 4-223
July. 16, 2014