use this circuit found towards the bottom of the page

http://rentron.com/PICX6.htm