Author Topic: Ethernet pin as IO?  (Read 7682 times)

Offline neil

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
Ethernet pin as IO?
« on: February 01, 2010, 09:32:23 AM »
Hi Mark,
   I am using the Ethernet on the 52259, and dont use the FEC_TXER pin. Can I use this pin as I/O, and have the Ethernet module to continue as normal?

Regards
Neil

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: Ethernet pin as IO?
« Reply #1 on: February 01, 2010, 11:33:25 AM »
Hi Neil

You should be able to use this. After the Ethernet interface has been configured (usually happens before the application has started) use the following command to set the pin back to GPIO use (it will have been set to FEC_TXER mode):

    PTJPAR &= ~TJ_FEC_TXER_FUNCTION;  // configure the FEC_TXER pin back to GPIO mode

Regards

Mark