Content originally posted in LPCWare by IanB on Sat Nov 08 04:44:13 MST 2014
I have used several LPC devices, and have not used pull-ups or pull-downs on the SWD lines.
If you look at the relevant section in IOCON the pins both start up with a pull-up enabled. The pull-ups on these devices are specified between 15µA and 85µA, so are equivalent to having a pull-up resistor between 39k and 220k. It seems a bit daft to add a pull-down resistor - it's a recipe to set the input voltage at some intermediate value where it is more vulnerable to noise, and if it is like any other CMOS gate, cause the input devices to draw current from the supply.
SWCLK is a single direction signal, so is always driven from the programmer.
SWDIO is bidirectional, and if you watch it on a 'scope you can see that it slowly floats upwards in the gaps when it is driven by neither end.
One thing did flummox me for a while. On a LPC12xx, when the power to the board is removed, there will be voltage on Vdd that is supplied through the SWCLK/SWDIO pins, but on an LCP11xx there isn't. I eventually realised why - the LPC11xx has 5V tolerant inputs, and the LPC12xx doesn't. That means the LPC12xx has diodes between inputs and Vdd, and the LPC11xx doesn't. The LPC12xx gets supplied from SWCLK/SWDIO through its protection diodes.