Pin function J5-01 PTA15/PTD11

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

Pin function J5-01 PTA15/PTD11

ソリューションへジャンプ
1,113件の閲覧回数
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,005件の閲覧回数
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,006件の閲覧回数
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,005件の閲覧回数
stefan130293
Contributor I

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

0 件の賞賛
返信