Melanie pretty much said it all, but there's schematics and math formulas for transformerless supplies in this Microchip appnote:

http://ww1.microchip.com/downloads/e...tes/00954A.pdf



steve