how to design totem pole using NPN AND PNP transistor for more check this link http://microcontrollerslab.com/totem-pole-tutorial/