Pin function J5-01 PTA15/PTD11

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

Pin function J5-01 PTA15/PTD11

跳至解决方案
1,163 次查看
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

标记 (1)
0 项奖励
回复
1 解答
1,055 次查看
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 项奖励
回复
2 回复数
1,056 次查看
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 项奖励
回复
1,055 次查看
stefan130293
Contributor I

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

0 项奖励
回复