I am trying to use the fsl_adc16 interface and have not been able to find a clear definition of the chnGroup parameter. Even in the examples found in the SDK API Reference Manual are not clear. I can find references to it, but nowhere is it initialized to a specific value.
Just to be able to do something, I have it set to 0, but I would prefer to understand its use.
Thanks
解決済! 解決策の投稿を見る。
Hi David Pfaltzgraff,
Yes, you are right!
chnGroup refer to the Channel configuration.
ADC configuration parameter is used in the ADC_DRv_Init, if you generate the code , you will find the adConv1_InitConfig0 is used in the init code, just like the following:
Wish it helps you!
If you still have quesiton, please contact me!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi David Pfaltzgraff,
What details do want to know?
The paramether in the PE of fsl_adc or the generated function meanning?
1,If you want to know the fsl_adc PE configure items, please refer to the help of fsl_adc, you can find it from this path:
file:///C:/Freescale/KDS_2.0.0/eclipse/ProcessorExpert/Beans/fsl_adc/Items/1.0.0-GA/fsl_adcProperties.html
2, If you want to know the generated function meaning.
Actually, in the fsl_adc_driver.h, there have the comment already describ the generated funciton.
Wish it helps you!
If you still have quesiton, please contact me!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Since I'm not that familiar with the ADC in the Kinetis line, maybe I'm asking both.
In the fsl_adc_driver.h file, it says: "chnGroup Selection of the configuration group." The the PE menu below
does the chnGroup refer to the Channel configuration (line3) or the ADC configuration (last line)?
If it's referring to line 3, then when is the ADC configuration parameter used?
Thanks
Hi David Pfaltzgraff,
Yes, you are right!
chnGroup refer to the Channel configuration.
ADC configuration parameter is used in the ADC_DRv_Init, if you generate the code , you will find the adConv1_InitConfig0 is used in the init code, just like the following:
Wish it helps you!
If you still have quesiton, please contact me!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I have encountered the same issue as the OP. Found this post but see no code under "just like the following" in the answer. I remain unclear as to what the chnGroup parameter is and have found no generated code defining something that looks like it could be copied into the spot. Like the OP, I have found that 0 works. Mine is a KDSK 1.3.0 project targeting the FRDM-K64F.
Hi BARRY BINE,
Because this post is answered and closed, for your new question, please create a new post, then we will reply you in your new thread.
Wish it helps you!
Jingjing
No, it does not help me. Though it may have been answered, there appears to be a code snippet or something missing after "just like the following". Is it just me than cannot see it or has a link disappeared? I don't think starting a new thread is appropriate.
That helps explain the structure of the code, Also, since I am new to PE, it helps my understanding of its implementation.
Thanks