|
|
|
Component
ADC
A/D converter
Properties:
-
Component name - Name of the component.
-
A/D converter - A/D converter device.
-
Sharing - This property allows sharing of the ADC device by other components. However, enabling it means that some features may not be available, e.g., disabling Interrupt service/event.
-
Interrupt service/event - Component uses the interrupt service for the conversion. If this property is set to "Enabled", the component functionality depends on the interrupt service and will not operate if the CPU interrupts are disabled. For details please refer to chapter "interrupt service in the component's generated code".
The following items are available only if the group is enabled (the value is "Enabled"):
-
A/D channels - List of the pins used by an A/D converter. You may add/delete a pin item with the +/- buttons, and select a pin for each item with the roll-down menu.
One Item of the list looks like:
Channel0 - Number of the channel.
-
A/D channel (pin) - A/D channel (select pin name).
-
A/D channel (pin) signal - Signal name of the A/D pin
-
Settings supported for Freescale 56800/E 5685x, 56F801x, 56F802x, 56F803x, 56F80x, 56F81x, 56F82x, 56F82xx and 56F83x and HCS08 JE, LH and MM and ColdFireV1 MCF51EM, MCF51JE and MCF51MM and MCF MCF5213_12_11, MCF521xx, MCF5221x, MCF5222x, MCF5223x and MCF5225x derivatives only.
-
Mode select - Mode select
The following items are available only if the group is enabled (the value is "Differential"):
-
A/D resolution - Maximum data resolution required by application.
Version specific information for Freescale HCS08 and RS08 and ColdFireV1 derivatives
In the differential mode resolution width is + 1 signed bit in MSB, except the 16b resolution where the MSB is also sign bit, but data is 15b only.
-
Conversion time - Time for one conversion. It is necessary to type here both a value and an unit (see Timing Setting Syntax). The setting may be made with the help of the Timing dialog box that opens when clicking on the button
.
-
These settings are supported only for Freescale HC08 MR8, MR16, MR32, EY16, LJ12, LK24, AP64, GR16, GR16A, GR32A, GR60A, GZ16, GZ32, GZ60 and HCS08 GB60, GB60A, GT60, GT60A, MC13214 and GT16A derivatives.
-
Result mode - Justification mode for a 10-bit result. GetValue (GetChanValue) method returns a byte value for the 8-bit (signed/unsigned) mode, a word value (0 - 1023) for the Right justified mode, a word value (0 - 65536) for the Left justified unsigned mode, and an integer value (-32768 - 32767) for the Left justified signed mode.
-
These settings are supported only for Freescale HC08 SR12/AP64/AP64A derivatives.
-
Autoscan mode - Mode of the autoscan function. It determines how many channels are used in this mode. The first channel must be the ADC channel 0 in the A/D channels list when the autoscan mode is enabled. Also the 8-bit truncated mode of data has to be used.
-
Settings supported for Freescale 56800/E 56F800x and HCS08 AC, AW, DE, DN, DV, DZ, EL, EN, FL, IA, IB, IC, JE, JM, LC, LG, LH, LL, MM, MP, QA, QB, QD, QE, QG, SC, SE, SF, SG, SH and SV and HC08 EY16A, JL16, QC, HC908QT4A, HC908QY4A, JK16, LV8, QB8, QL4, QT8, QY8 and RS08 and ColdFireV1 derivatives only.
-
Settings not supported for RS08SA derivatives.
-
Low-power mode - This item controls the speed and power configuration of the successive approximation converter. This is used to optimize the power consumption when higher sample rates are not required.
-
Settings only if ADC support High speed mode
-
High-speed conversion mode - This property enable/disable high speed conversion mode for ADC. In this mode ADC can run at higher conversion frequency, but ADC conversion takes 4 additional ADCK cycles.
-
Settings only if ADC support Asynchro clock output enable/disable
-
Asynchro clock output - This property Enable/Disable asynchronous clock and clock output regardless of ADC state.
This property influenced conversion time if the asynchro clock is selected as ADC clock - total conversion time is shortened by 5 us.
-
Sample time - Select length of the sample time in units of ADC conversion clock cycles. This selection affects the total conversion time and the A/D conversion accuracy ( a longer sample time results in a better accuracy).
-
Settings supported for Freescale HCS08 DE, DN, DV, DZ, EN, FL and SV and HCS12 and HCS12X and MCF derivatives only.
-
External trigger - Allows to synchronize A/D conversion with an external signal. Triggering functionality is disabled after initialization and user has to enable it using a special method:
Version specific information for Freescale HCS08 derivatives
When this feature is enabled, and a previously mentioned method is enabled and the property interrupt service/event is disabled, then the number of conversions has to be set to 1.
The following items are available only if the group is enabled (the value is "Enabled"):
-
Settings supported for Freescale 56800/E and HCS08 AC, AW, DE, DN, DV, DZ, EL, EN, IA, IB, IC, JE, JM, LC, LG, LH, LL, MM, MP, QA, QB, QD, QE, QG, SC, SE, SG, SH and SV and RS08 and HCS12 HY and P and HCS12X and ColdFireV1 and MCF derivatives only.
-
Internal trigger - Allow to synchronize A/D conversion with internal signal. Triggering functionality is disabled after initialization and user has to enable it using EnableIntTrigger or EnableIntChanTrigger methods. If this feature is enabled, at least one of the methods EnableIntTrigger, EnableIntChanTrigger is generated, and interrupt service/event is disabled, then the number of conversions has to be set to 1.
The following items are available only if the group is enabled (the value is "Enabled"):
-
Settings supported for Freescale 56800/E 56F800x and HCS08 LH and MM and ColdFireV1 MCF51AG, MCF51EM and MCF51MM derivatives only.
-
Voltage reference - The property selects the voltage reference source.
There are 3 options:
- VREFH/VREFL: Default voltage reference pin pair (VREFH/VREFL).
- VDDA/VSSA: Analog supply pin pair (VDDA/VSSA).
- On-chip: On-chip bandgap reference.
-
Number of conversions - Number of conversions for one measurement (to calculate an average value, 1-255).
Note: if the number corresponds to power of 2 (2, 4, 8,...) the compiler can better optimize the calculation of the average.
-
Initialization - Initial settings (after power-on or reset).
-
CPU clock/speed selection - Settings for the CPU speed modes: it shows whether the component supports it or not.
For details about speed modes please refer to page Speed Modes Support.
-
High speed mode - The component is enabled/disabled in the high speed mode.
-
Low speed mode - The component is enabled/disabled in the low speed mode.
-
Slow speed mode - The component is enabled/disabled in the slow speed mode.
|