Download the application note 900 of microchip. It use a PIC18F4431.
http://www.microchip.com/wwwappnotes....aspx?lang=en#

Not in PBP but maybe a good kick in the ... to start