IMPORTANT: In the table above I have given the HEX values according to the pins I have used in LPC2148, check the circuit diagram below. You can use whatever pins you want but change hex values ...