I already used it in differential mode only. But when I configured the ADC with differential channels and single ended channels together, the processor expert reported me an error: “All channels have to be in the same mode!”. I was using the FRDM KL25Z.
Solved! Go to Solution.
Hi,
please use ADC_LDD component instead of ADC. The ADC is a component from a "high level" component set member that comes from older architectures (HCS08, HCS12) and it has the limitation that differential and single ended channels cannot be used together. On Kinetis the ADC component methods are using ADC_LDD anyway so if you use ADC_LDD directly, you will get a little bit more effective code.
For examples of ADC_LDD usage, please see the 'Typical usage' page in the help (you can see it using 'Help on component' pop-up menu command for the component).
The advice from Vojtech regarding the types was intended for ADC_LDD. In the ADC_LDD there is a property Result type.
best regards
Petr Hradský
Processor Expert Support Team
Hello,
could you please try to switch the result type to Raw or signed/unsigned 16-bit. In case the problem persists please post here the ProcessorExpert.pe file from your project.
Best regards
Vojtech Filip
Processor Expert Support Team
Hi,
please use ADC_LDD component instead of ADC. The ADC is a component from a "high level" component set member that comes from older architectures (HCS08, HCS12) and it has the limitation that differential and single ended channels cannot be used together. On Kinetis the ADC component methods are using ADC_LDD anyway so if you use ADC_LDD directly, you will get a little bit more effective code.
For examples of ADC_LDD usage, please see the 'Typical usage' page in the help (you can see it using 'Help on component' pop-up menu command for the component).
The advice from Vojtech regarding the types was intended for ADC_LDD. In the ADC_LDD there is a property Result type.
best regards
Petr Hradský
Processor Expert Support Team
Hi Petr,
It's great! Now I configured my ADC and worked!
Thank you very much.