Pin function J5-01 PTA15/PTD11

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

Pin function J5-01 PTA15/PTD11

Jump to solution
801 Views
stefan130293
Contributor I

We are trying to use the DEVKIT-MOTORGD in combination with the S32K144 board. We are able to program it through Simulink but the configuration of the encoders signals are on the wrong pin.

I use the Quadrature_decoder block in Simulink and select Module 2, Phase A = PTD11 and Phase B = PTD10.

If i look at the header pinout mapping of the S32K144 PTD11 is located on J1-08 and PTD10 is located on J1-06. But it is also located on J5-01 and J5-03 (double function). How do i switch this from J1 to J5 in simulink? 

pastedImage_1.png

Tags (1)
0 Kudos
1 Solution
693 Views
constantinrazva
NXP Employee
NXP Employee

Hello stefan130293‌,

If you select for instance PTD11 as PhaseA input pin for quadrature decoder block (from our toolbox)

pastedImage_1.jpg

you can use whichever you see fit (between J5.1 and J1.8). So as far as software goes, when you've selected PTD11, it does not matter from where you access it from.

However, if we take a look at the schematics of S32K144 EVB, we can see that if you want to use J5.1 you'll have to make a little change to the hardware - by default, this EVB comes with R167 populated, so J5.1 is now connected to PTA15. As you can notice below, PTD11 comes without R168 populated. If you want to use PTD11 from J5.1, you'll have to take out  the 0-ohm link from R167 and put it on R168.

pastedImage_4.jpg

On the other hand, on J1.8 you can use it as-is, without changing anything hardware-wise.

pastedImage_5.jpg

Hope this helps,

Razvan.

View solution in original post

0 Kudos
2 Replies
694 Views
constantinrazva
NXP Employee
NXP Employee

Hello stefan130293‌,

If you select for instance PTD11 as PhaseA input pin for quadrature decoder block (from our toolbox)

pastedImage_1.jpg

you can use whichever you see fit (between J5.1 and J1.8). So as far as software goes, when you've selected PTD11, it does not matter from where you access it from.

However, if we take a look at the schematics of S32K144 EVB, we can see that if you want to use J5.1 you'll have to make a little change to the hardware - by default, this EVB comes with R167 populated, so J5.1 is now connected to PTA15. As you can notice below, PTD11 comes without R168 populated. If you want to use PTD11 from J5.1, you'll have to take out  the 0-ohm link from R167 and put it on R168.

pastedImage_4.jpg

On the other hand, on J1.8 you can use it as-is, without changing anything hardware-wise.

pastedImage_5.jpg

Hope this helps,

Razvan.

0 Kudos
693 Views
stefan130293
Contributor I

Oke i get it now. Thanks for your fast reply.

0 Kudos