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.
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?
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
And is there any sample for MPC5777c esci to be configured as interrupt and polling?
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?