Usage of pins in mpc5777c with dual functionalities

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

Usage of pins in mpc5777c with dual functionalities

468 Views
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.

Tags (1)
0 Kudos
4 Replies

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

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

410 Views
vignesh_v
Contributor III

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

0 Kudos

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