Excuse my ignorance my fellow engineer!! I think I understand what you mean by "connected wrongly… well here is an attempt of me(following the tutorial by sparkfun) to fix my mistake…
Well, I am just wondering… I have seen like 5 schematics and all of them have VREF connected to the power supply… and about the same for VBAT… also, are these(the pins that you suggested me to connect to JTAG aren’t the only ones I see on other schematics) the only ones I need to connect to jtag to program the processor properly? Do I need a reset circuit(rst is connected to jtag though)? Why are the jtag pull ups resistors used in the schematics I see while in the jtag application note there are no pull ups used(It mentions though that the resistors should be used if the distance between the core and the jtag is bigger than 5cm and it isn’t in most of the boards.), all the boards I saw were from Olimex, micro4you and some boards from the lpc2000 family, the lpc2000 yahoo group files and also some others that I came up googling
I got my answer while searching on google, and if still someone came here looking for an answer to my question above here it is…
The pull-down resistors are to keep the logic level going into the gate at ground until the button is pushed.
IC's are VERYY sensitive to ESD (Electrostatic) and if you leave the inputs 'floating' (not conected) they will pick up signals from a range of things...
and you dont tie the input straight to ground to keep it at logic 0 because when when you press the button you will make a short circuit.
The resistor acts as a load.
It is a high value resistor to heavily limit current, but the IC will still pick up the logic levels.
You can change the resistor value to 10K if you want.