User`s manual

RX62N Group, RX621 Group 4. Library Reference
Description (2/2)
Trigger selection
PDL_ADC_10_TRIGGER_SOFTWARE or
Software trigger.
PDL_ADC_10_TRIGGER_MTU0_MTU4_CMIC_A or
Compare-match / input-capture A
signal from MTU0 to MTU4.
PDL_ADC_10_TRIGGER_TMR0_CM_A or
Compare-match A signal from TMR
channel 0.
PDL_ADC_10_TRIGGER_ADTRG0 or
PDL_ADC_10_TRIGGER_ADTRG1 or
ADTRG0# pin (valid for unit 0 only).
ADTRG1# pin (valid for unit 1 only).
PDL_ADC_10_TRIGGER_MTU0_CMIC or
A signal from MTU channel 0:
For unit 0: compare match / input
capture A.
For unit 1: compare match / input
capture B.
PDL_ADC_10_TRIGGER_MTU6_MTU10_CMIC_A or
Compare-match / input-capture A
signal from MTU6 to MTU10.
PDL_ADC_10_TRIGGER_MTU4_CM or
Compare-match signal from MTU
channel 4.
PDL_ADC_10_TRIGGER_MTU10_CM
Compare-match signal from MTU
channel 10.
Data alignment selection
PDL_ADC_10_DATA_ALIGNMENT_LEFT or
PDL_ADC_10_DATA_ALIGNMENT_RIGHT
The alignment of the 10-bit ADC conversion
result within the 16-bit register.
Left: padded at the MSB end.
Right: padded at the LSB end.
DMAC / DTC trigger control
PDL_ADC_10_DMAC_DTC_TRIGGER_DISABLE or
PDL_ADC_10_DMAC_TRIGGER_ENABLE or
PDL_ADC_10_DTC_TRIGGER_ENABLE
Disable or enable activation of the
DMAC or DTC when a conversion or
scan cycle completes.
Sampling time calculation
PDL_ADC_10_ADSSTR_CALCULATE or
PDL_ADC_10_ADSSTR_SPECIFY
Select whether parameter data4 is used to
calculate the ADSSTR register value, or
contains the value to be stored in ADSSTR.
Pin selection (required only if the pin is used).
PDL_ADC_10_PIN_ADTRG0_A or
PDL_ADC_10_PIN_ADTRG0_B
Select the -A or -B pin for ADTRG0#.
Self-Diagnostic
PDL_ADC_10_SELF_DIAGNOSTIC_DISABLE or
PDL_ADC_10_SELF_DIAGNOSTIC_VREF_0 or
PDL_ADC_10_SELF_DIAGNOSTIC_VREF_0_5 or
PDL_ADC_10_SELF_DIAGNOSTIC_VREF_1
Disable or enable Self-diagnostic
function of Vref x 0 voltage value, or
Vref x ½ voltage value, or
Vref x 1 voltage value.
[data3]
The desired frequency of the conversion clock (ADCLK) in Hertz.
Up to four frequencies are available, as a division of the peripheral clock. Please see the Remarks.
[data4]
The data to be used for the sampling state register value calculations.
Data use
Parameter type
The timer period in seconds or
float
The value to be put in register ADSSTR
uint8_t
[func]
The function to be called when the ADC conversion or scan cycle is complete.
Specify PDL_NO_FUNC if no callback function is required.
[data5]
The interrupt priority level. Select between 1 (lowest priority) and 15 (highest priority).
This parameter will be ignored if PDL_NO_FUNC is specified for parameter func.
Return value
True if all parameters are valid and exclusive; otherwise false.
R20UT0084EE0112 Rev.1.12 Page 4-222
July. 16, 2014