Default values of PINSEL in mbed LPC1768

22 May 2012

Hi

I'm trying to figure out the default pin function I should use for the LPC1768 board in a project created in an external IDE (like uVision) without using the mbed libraries at all.

According to the LPC1768 schematic:

These pins are connected to the DIP pins and the leds so can be configured by the user to any function (except from the leds which can only work as outputs obviously )

DIP5	P0.9
DIP6	P0.8
DIP7	P0.7
DIP8	P0.6
DIP9	P0.0
DIP10	P0.1
DIP11	P0.18
DIP12	P0.17
DIP13	P0.15
DIP14	P0.16
DIP15	P0.23
DIP16	P0.24
DIP17	P0.25
DIP18	P0.26
DIP19	P1.30
DIP20	P1.31
DIP21	P2.5
DIP22	P2.4
DIP23	P2.3
DIP24	P2.2
DIP25	P2.1
DIP26	P2.0
DIP27	P0.11
DIP28	P0.10
DIP29	P0.5
DIP30	P0.4
LED1	P1.18
LED2	P1.20
LED3	P1.21
LED4	P1.23

Then there are the internally connected ENET pins which I think should be set to the ENET function bu default, is this correct and is it OK the leave the pull up enabled?

P1.0/ENET-TXD0		connected to TGT_P1.0
P1.1/ENET-TXD1		connected to TGT_P1.1
P1.4/ENET-TX_EN		connected to TGT_P1.4
P1.8/ENET_CRS		connected to TGT_P1.8
P1.9/ENET_RXD0		connected to TGT_P1.9
P1.10/ENET_RXD1		connected to TGT_P1.10
P1.14/ENET-RX_ER	connected to TGT_P1.14
P1.15/ENET-RX_CLK	connected to 50MHZ

P1.16/ENET-MDC		connected to TGT_P1.16
P1.17/ENET-MDIO		connected to TGT_P1.17

And finally the remaining internally connected pins that I'm not sure about. Can they be left as inputs or need to be set as outputs or even an alternative pin function? And what about the pull up/down resistor setting?

P1.25/MC1A/MAT1.1		connected to LED_LINK
P1.26/MC1B/PWM1.6/CAP0.0	connected to LED_SPEED
P1.27/CLKOUT/USB_OVRCR/CAP0.1	connected to ETH_OSC_EN
P1.28/MC2A/PCAP1.0/MAT0.0	connected to ETH_RST

P2.9/USB_CONNECT/RXD2		connected to TGT_SCON

I hope someone can help

Thank you Alex