1.6.2.8 1.7.2.8 1.10.1.8 1.11.1.8 1.12.1.8 1.13.1.8 1.22.1.8 1.23.1.8 1.24.1.8 ADCHS_ChannelConversionStart Function
C
void ADCHS_ChannelConversionStart(ADCHS_CHANNEL_NUM channel)
Summary
Starts the ADC conversion of an analog channel
Description
This function starts ADC conversion of an analog channel specified in channel.
Precondition
ADCHS_Initialize() function must have been called first for the associated instance and ADC module corresponding to channel must have been enabled using ADCHS_ModulesEnable() function.
Parameters
Param | Description |
---|---|
channel | analog channel |
Returns
None.
Example
ADCHS_Initialize(); ADCHS_ModulelsEnable(ADCHS_MODULE0_MASK); ADCHS_ChannelConversionStart(ADCHS_CH0);
Remarks
This function can be called at the start to generate initial trigger. This can also be used to trigger the conversion of an input without changing the trigger source.