Hi,
I am trying to configure an ADC component in PE under the KDS and the FRDM-KL25Z board. I am using the ADC0 and I want to use 4 channels:
My problem is that the last three are giving me the following problem:
This setting causes a conflict in the ADC0_CFG2[MUXSEL] - pins muxed by the same bit field(s) must be set identically. (A/D channel (pin))
Here is what I am trying to configure:
what am I doing wrong?
Thanks,
Avner
已解决! 转到解答。
Hello,
The reported error means that you have selected both ADC0_SE a channels and also ADC_SE b channels in one ADC_LDD component. These groups of channels (a and b) are switched by using MUXSEL bit in ADC0_CFG2 register. You must select channels from one group of channels only. List of mixed groups is not supported.
For example, select:
or
Best Regards,
Marek Neuzil
I found this after reading a bit:Re: ADC_LDD for Kinetis K20
I saw it was written in 2011... is it possible to control muxing in PE? or should I still do it by hand in real time?
if it is not possible, can someone help me to understand how I can do it?
thanks in advance,
Avner
Hello,
The reported error means that you have selected both ADC0_SE a channels and also ADC_SE b channels in one ADC_LDD component. These groups of channels (a and b) are switched by using MUXSEL bit in ADC0_CFG2 register. You must select channels from one group of channels only. List of mixed groups is not supported.
For example, select:
or
Best Regards,
Marek Neuzil