you don't need to bother to much about that, use a simple resistor in serie (as current limiting) and look what's happen to the wave? Yeah, the PIC internal diode clamp it, most of the time, it's fair enough.
I have to go, but i may do something to help you to start. Which PIC do you plan to use?
Bookmarks