facing issue on ADC example code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

facing issue on ADC example code

1,680 次查看
selvarajasekar
Contributor III

Hi,

      I am currently using S32 Design Studio version 3.4, and I have imported the S32K3 RTD AUTOSAR 4.4.2.0.0 D2203 example projects. Specifically, I imported the ADC_example_s32k344 project for use with my S32K344 board. While I have successfully tested I2C, SPI, and UART functionalities, I am encountering issues with the ADC_example_s32k344 projects.

Upon importing these projects, I noticed that there was no pin configuration provided. Consequently, I manually configured the pins. However, I am uncertain about how to configure the ADC pins within the Pin config tool.But in ADC module -> Adcconfigset->Adchwunit -> they are selecting BANDGAP_ChanNum48
i cannot able to understand how they are configuring ADC pins

I have attached the screenshot 

I need to know how i can check this example code in which adc pin i need to check

please help me out .
thanks and regards,
Rajasekar A

selvarajasekar_0-1702293346861.png

 

标签 (1)
0 项奖励
回复
3 回复数

1,637 次查看
selvarajasekar
Contributor III

Could you please provide documentation on how to read the ADC value for an ADC pin in a microcontroller? The example provided only demonstrates monitoring the reference voltage, and I would like information on how to read ADC values for specific pins in the microcontroller

0 项奖励
回复

1,632 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @selvarajasekar 

Check the following links. There is information related to the topic that you might find useful. 

AN13413: ADC Guidelines Spec and Configuration

Example S32K344 PIT BTCU ADC DMA

0 项奖励
回复

1,662 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @selvarajasekar 

This example uses the bandgap ADC channel (channel 48) to monitor reference voltage. This is an internal reference channel, so no connection is needed. 

 

B.R.

VaneB

 

0 项奖励
回复