Usage of pins in mpc5777c with dual functionalities

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

Usage of pins in mpc5777c with dual functionalities

496 次查看
vignesh_v
Contributor III

I'm using a pin tat has needs to used for txdf and rxdf for esci data transmission and reception or debug port .The same pin needs to be used as gpio when   application request to read it for diagnostic purposes . Can someone give me an idea how to achieve it.

标记 (1)
0 项奖励
4 回复数

438 次查看
vignesh_v
Contributor III

if it is done through polling same can be done ? initially configure it to txda and rxda and then when the pin is to be read its configured as gpio and then while transmitting the result back to txda??And is there any sample for MPC5777c esci to be configured as interrupt and polling?

0 项奖励

438 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

When application request diagnostic (I expect it will be in interrupt), just simply reconfigure pin to GPIO and then back to eSCI in PCR[PA] register.

regards,

Peter

0 项奖励

438 次查看
vignesh_v
Contributor III

And is there any sample for MPC5777c esci to be configured as interrupt and polling?

0 项奖励

438 次查看
vignesh_v
Contributor III

ya ok..what if it is done through polling same can be done ? initially configure it to txda and rxda and then when the pin is to be read its configured as gpio and then while transmitting the result back to txda?

0 项奖励