s32k3 ebtresos configuration for ebtresos

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

s32k3 ebtresos configuration for ebtresos

195 Views
sanjay645
Contributor I

Hello, I am trying to configure a adc channel in ebtresos, but i dont know the process, I have created a port pin in port module and configured it as adc 0 channel 9, and in adc module, i added a channel with channel 9. please help me and give detail steps how can i configure a pin as adc, here are few snapshorts of my configuration, please also let me know if i am missing something.

sanjay645_0-1701267822323.png

Here i am using gpio 01 of mwct2016s micro controller that is linked with adc0 channel 9 so i have configured these

sanjay645_1-1701267857736.png

 

0 Kudos
1 Reply

145 Views
NamLe
NXP Employee
NXP Employee

Hi sanjay645,

Basically your steps are correct.

First you need to add Adc Channel in Adc module, for example i choose P0_ChanNum0

ADC_channel_select.png

Then let's find which pin will support this ADC channel. For example, i choose pin D1.

find_the_port.png

From D1 pin, we know the value of MSCR register (for MSCR value please refer to RM of chip). When you put the correct value of it, you can choose the Portpin Mode that be supported by the Pin. Then you choose P0 mode for this pin.

Port_configuration.png

Please help me to try this.

Thank you,

Nam.

0 Kudos