Board to Board communication

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

Board to Board communication

1,132 Views
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?

Labels (1)
0 Kudos
3 Replies

954 Views
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 Kudos

954 Views
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 Kudos

954 Views
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 Kudos