This App note has a lot of good information on transformerless PSU's

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