If you have a few pins that you suspect to be JTAG, but don't know which is which, there are tools for that too [1], (instead of manually trying).
[1]: http://hackaday.com/2013/10/02/jtagulator-finds-debug-interf...
[1]: http://hackaday.com/2013/10/02/jtagulator-finds-debug-interf...
https://docs.google.com/presentation/d/13p6O0C3aY-LSeqGAjfEg...