ADC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ADC

602 Views
Shruthi_C
Contributor II

Hi, 

I am using ADC-0 for 5 channels and ADC-1 for 2 channels

Initially configuring both the ADC and calibrating both the ADC using these functions

ADC_DRV_ConfigConverter()  for ADC-0
ADC_DRV_AutoCalibration() for ADC-0

ADC_DRV_ConfigConverter() for ADC-1
ADC_DRV_AutoCalibration() for ADC-1

 

Later I am triggering(software) and configuring the ADC channels using ADC_DRV_ConfigChan function, then I am waiting for COC flag to be set and reading the ADC raw values

 

In this scenario I am only getting proper raw values for ADC0 not for ADC-1

Plese support

Thanks

Shruthi

0 Kudos
2 Replies

579 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Shruthi,

I mentioned three examples to you in your last question. Please tell me which example are you referring to? So that I can troubleshoot the cause for you on the corresponding S32DS and SDK.


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

558 Views
Shruthi_C
Contributor II

Hi Robin,

 

The PTB0 and PTB1 pins are by default configured to ADC0 but I was configuring ADC-1 without switch configuration so there was a issue

Now resolved by configuring PTB0, PTB1 to ADC0 Thank you Robin.

Shruthi_C_0-1688119823407.png

 

Thanks

Shruthi