|
|
|
Component
Init_ADC for HC08
Analog-to-Digital Converter (ADC)
Properties:
-
Component name - Name of the component.
-
Device - Selection of the ADC device module.
-
Settings - Common ADC module settings
-
Clock settings - Clock/timing settings of the module
-
The setting is not supported for Freescale HC08 BD48, JG16, JK1, JL3, JL3E, JL8, LB8, LD64, QT4, QY4 derivatives.
-
Clock source - This item selects either the bus clock or oscillator output as the input clock source to generate the internal ADC clock.
AP64, AS60A, AZ60A, AS60A, AZ32A, AZ60, KX2, KX8, SR12: This item modifies the ADICLK bit in the ADICLK register.
Other derivatives:This item modifies the ADICLK bit in the ADCLK register.
-
The setting is not supported for Freescale HC08 EY16A, LV8, QB8, QC16, QL4, QL16, QT4A, QT8, QY4A, QY8, JL16 and JK16 derivatives.
-
Prescaler - This property selects the divide ratio used by the ADC to generate the internal ADC clock. The ADC clock should be set to approximately 1 MHz.
AP64, AZ60A, AS60A, AZ32A, AZ60, JG16, JK1, JL3, JL3E, JL8, KX2, KX8, LD64, QT4, QY4, SR12: This item modifies the ADIV[2:0] bits in the ADICLK register
Other derivatives: This item modifies the ADIV[2:0] bits in the ADCLK register.
-
The settings are supported for Freescale HC08 EY16A, LV8, QB8, QC16, QL4, QL16, QT4A, QT8, QY4A, QY8, JL16 and JK16 derivatives only.
-
Low-Power Configuration - This property controls the speed and power configuration of the successive approximation converter. This is used to optimize power consumption when higher sample rates are not required.
This item modifies the ADLPC bit in the ADCLK register.
-
Asynchronous Clock Source - This property enables the asynchronous clock source as the input clock to generate the internal clock ADCK, and allows operation in stop mode.
This item modifies the ACLKEN bit in the ADCLK register.
-
Prescaler - This property selects the divide ratio used by the ADC to generate the internal ADC clock.
This item modifies the ADIV[1:0] bits in the ADCLK register
-
Frequency -
Calculated ADC clock frequency (for information only).
This item is influenced by the following properties: Prescaler, Clock source, Asynchronous Clock Source.
-
Conversion time -
The maximum total conversion time (for information only).
For Conversion mode property set to Single conversion, the value is the conversion time of a single or the 1st continuous conversion.
For Conversion mode property set to Continuous conversion, the value is the conversion time of a subsequent conversion.
This item is influenced by the following properties:
EY16A, QB8, QC16, QY8, QT8, QL4, QC16, JL16, JK16: Frequency, Result justification, Long Sample Time Configuration, Conversion mode.
Other derivatives: Frequency, Conversion mode.
-
Conversion mode - If continuous conversion is set - ADC will convert samples continuously and update the ADC data register at end of each conversion.
If single conversion is set, only one conversion is enabled
This item modifies the ADCO bit in the ADCSC register.
-
The settings are supported for Freescale HC08 EY16A, LV8, QB8, QC16, QL4, QL16, QT4A, QT8, QY4A, QY8, JL16 and JK16 derivatives only.
-
Result justification - This item selects between four modes of operation. It controls the way in which the ADC conversion results will be placed in the ADC data register.
This item modifies the MODE[1:0] bits in the ADCLK register
-
Long Sample Time Configuration - This property configures the sample time of the ADC10 to either 3.5 or 23.5 ADCK clock cycles. This adjusts the sample period to allow higher impedance inputs to be accurately sampled or to maximize conversion speed for lower impedance inputs. Longer sample times can also be used to lower overall power consumption in continuous conversion mode if high conversion rates are not required.
This item modifies the ADLSMP bit in the ADCLK register.
-
The setting is supported for Freescale HC08 AP64, EY16, GR16, GR16A, GR32A, GR60A, GZ16, GZ32, GZ60, LJ12, LK24, MR32, MR8, SR12 derivatives only.
-
Result justification - This item selects between four modes of operation. The manner in which the ADC conversion results will be placed in the ADC data register is controlled by these modes of operation.
AP64, SR12: This item modifies the MODE[1:0] bits in the ADICLK register
Other derivatives: This item modifies the MODE[1:0] bits in the ADCLK register
-
The settings are supported for Freescale HC08 AP64 and SR12 derivatives only.
-
Auto-scan mode - This item is used to define the number of auto-scan channels used when in auto-scan mode
This item modifies the AUTO[1:0] bits in the ADASCR register.
-
Auto-scan enable - This item enables or disables auto-scan mode.
Auto-scan mode should not be enabled when ADC continuous conversion is enabled. And 8-bit truncation mode must be selected.
This item modifies the ASCAN bit in the ADASCR register.
-
Pins - Module pins/signals settings.
-
ADC Input Pins - This item increases or decreases number of used input pins
One Item of the list looks like:
Input Pin0 - Input channel group
-
Interrupts - Interrupts settings of the module.
-
Conversion complete - Conversion complete interrupt settings.
-
Interrupt - Interrupt vector (for information only)
-
Conversion complete interrupt - Enable/disable conversion complete interrupt. When is enabled, an interrupt is generated upon completion of an ATD conversion. The interrupt signal is cleared when the data register is read or the status/control register is written.
This item modifies the AIEN bit in the ADCS register.
-
ISR name - Name of the interrupt service routine (ISR) invoked by this interrupt vector.
The user code of the routine should handle all respective interrupt flags correctly. The routine must be implemented in the user code, it is not generated by Processor Expert. Find external prototypes of the ISRs in the component module header file.
-
Initialization - Initialization options of the module
-
Call Init method - The Init method of the component may be called after power-on or reset (in initialization code) by PE.
- yes The Init method is called by PE
- no The Init method is not called by PE, it should be called in user s code
-
The setting is supported for Freescale HC08 BD48, GR8, LD64 derivatives only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 AB16A, AB32, AP64, EY16, EY16A, GP32, GR16, GR16A, GR32A, GR60A, GT16, GZ16, JG16 derivatives only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 AZ32, AZ32A, AZ60, AS60, AS60A, AZ60A derivatives only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 GZ32, GZ60 derivatives only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 JK1, JL3 and JL3E derivatives only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
JK1, JL3: This item modifies the CH[4:0] bits in the ADSCR register.
JL3E: This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 JL8 derivative only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 KX2, KX8, QT4, QY4 derivatives only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
QT4, QY4: This item modifies the CH[4:0] bits in the ADSCR register.
Other derivatives: This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 MR8, LB8 derivatives only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 MR32 derivative only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 SR12 derivative only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 MR32_64 derivative only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 QB8, QC16, QL16 derivatives only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 LJ12 derivative only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 LK24 derivatives only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 QY8 and QT8 derivatives only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 JK16, JL16 derivatives only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADSCR register.
-
The setting is supported for Freescale HC08 QT4A , QY4A, LV8 and QL4 derivatives only.
-
Initial channel select - This item selects initial conversion source or disables module. If the selected channel is connected with an input pin the pin must be assigned to the ADC in Pins group. The ADC module will start conversion of the selected channel after startup.
This item modifies the ADCH[4:0] bits in the ADCSC register.
|