AnsweredAssumed Answered

Questions about ADC of S32 DS

Question asked by NI HAO on May 29, 2018
Latest reply on May 31, 2018 by NI HAO


My MCU is MPC5744P. I want to use AD port to monitor the voltage of a temperature sensor and calculate the temperature.The SDK is v0.9.0.There are some problems.

1.I have used the example of the SDK.First initialize ADC,then start a loop of conversion and get the results.Where can I find the results?I want to add expressions in debug window,but it doesn't work.

2.I want to use the results to calculate the temperature,should I add a formula in the loop?And where can I find the value of the formula?I tried to add the variable to expressions,but I thought the result was wrong.I think my step having being something wrong but I don't know where to correct.

3.If I connect one more sensor,I should add one more ADC_DRV_EnableChannel.But when I add it , the value of ADC_DRV_GetConvResultsToArray will be changed right? If I want to get the result respectively,which function can I use?



Thank you very much!