Sir, i want to connect 13 relays to microcontroller nd i hav only 4 pins to connect these relays.... so i am using decoder ic to connect the outputs.... so please tell me how to program for this...
What decoder IC? Using what pins?
Presumably a 4-to-16 decoder, where you output a 4-bit binary number which reflects the relay number you wish to energize.
See also: www.catb.org/.../smart-questions.html