Pin 1&2 are ground Pin 19&20 are Vcc, 5 to 27v Pin 3to10 should go strait to the chip, a binary counter should tell you what they do. Pin 11to18 should be functions. I could tell you more with a better PIC.