Board to Board communication

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Board to Board communication

1,167件の閲覧回数
benedikt_schwar
Contributor I

Hello,

I need two S32K144-Board to communicate with each other by toggling a PIN, so that the routine I need on both boards can be synchronized. This doesn't work like I want to and I guess reading the PIN doesn't work. 
I am using the PINs PTC14 (as input) and PTC3 (as output).

So as far as I know the code should just look like the following:

Board1:

            PTC->PSOR |= 1<<3;

Board2:

            if(PTC->PDIR & (1<<14)){

                  //do something

            }

Still this doesn't work like expected. PTC is high but PTC 14 doesn't recognize this. Do I need some kind of shared ground potential to get this working (-> how?) or am I getting something wrong with the implementation?

ラベル(1)
0 件の賞賛
3 返答(返信)

989件の閲覧回数
benedikt_schwar
Contributor I

Hello Daniel,

I am using the EVB but according to the QuickStart Guide (https://www.nxp.com/docs/en/quick-reference-guide/S32K144EVB-QSG.pdf ) page 5 it says J4-14 PTC14 is GPIO?
And when defining it as GPIO in the pin_mux:PinSettings it should work anyways in my opinon?

0 件の賞賛

989件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Benedikt,

Yes, the pin can be used as GPIO input.

But anyway, the PTC14 pin is connected to the potentiometer and PTC3 is connected to one of the touch pads.

So I would recommend using other pins.

pastedImage_1.png

pastedImage_2.png

pastedImage_3.png

Have you measured the voltage on the pin?

Thanks,

Daniel

0 件の賞賛

989件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

Do you use EVBs or your own boards?

On the S32K144 EVB PTC14 is connected the on-board potentiometer.

BR,

Daniel


.

0 件の賞賛