Thanks a lot! I showed it the wrong way in the drawing before but while hooking it up I did it correctly. Actually I changed my dc-dc converter to (NME0515SC ) which is not giving me 15 v, I am thinking this is because the datasheet has an inductor order part and maybe I am not loading it in it's 10% of the rated load which is a must to get it working. I am also not getting anything out from the output of the optocoupler. I think as I am giving around 2.7 v in the input of the optocoupler at pin 2 from the MSP430, do I need to use a BJT to supply the base and get it working? I found the IGBT/MOSFET Gate Drive Optocoupler that they have a transistor in the input. I have checked my connections and they seem to be ok to me now but still not getting anything. Would you suggest me to change the optocoupler? I am struggling to get it working. I really appreciate your help and time.