It looks as if, using the PC814, I could maintain isolation from the mains. If the output goes to a Schmitt trigger input on the PIC, that should do very nicely.
Remember, since you want a transformerless supply, using an opto is still not going to give you mains isolation. BE CAREFUL!
Bookmarks