Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 8 months ago.
How to access all pins on Mbed LPC1768?
Hi folks,
I am building my customized board with LPC1768. Because I have quite a few peripherals, I will need to repurpose the ethernet phy pins to GPIO and probably some other unexposed pins on mbed. Could some body tell me whether this is possible?
I am still in the middle of building circuit and haven't done any actual code in mbed yet. I may have stumbled onto some post on this topic but I could not find it later on. So please forgive me if this question has been asked and answered before.
Thanks in advance,
ZL
1 Answer
10 years, 8 months ago.
Yep, you can address all pins as Px_#, for example P0_1 for port 0, pin 1.
I dont quite understand; the 1768 has no ports, just pXX as pin numbers to associate to GPIO. How do we access the ethernet pins named: RD-, RD+, TD-, TD+, to make them a DigitalOut or DigitalIn?
Thanks
posted by 27 Aug 2014It has ports, just not as standard pin numbers. But you cannot use the ethernet pins as GPIO pins.
posted by 28 Aug 2014Thanks. The post above led me to believe I can repurpose the ethernet pins as GPIO
posted by 28 Aug 2014He has a custom board, so I assumed he meant the mbed pins connected to the ethernet PHY, not the ethernet PHY pins connected to the physical pins on the default mbed. That indeed is not possible.
IIRC D+ and D- can be used as GPIO, but you need to search their port/pin number.
posted by 28 Aug 2014