Quote Originally Posted by lerameur View Post
the output of the microcontroller is hooked up to the enable of the h-bridge, how can that fry my pins. I just fried my ccp pin..
Under normal circumstances, it shouldnt.

Having said that, you have already destroyed on H-Bridge which is being fed from your 12V supply. When that chip died it is possible that the 12v supply got fed back to your PIC.

One phone system that I used to work on had ULN2803 drivers for the relays. The phone system CPU was running on a 5v power supply but the relays were running off 47v. When systems were hit by lightning the power supply would normally die and sometimes the ULN2803s would be damaged. If you didnt find the damaged ones and replace them they would fail shortly after the system was powered up and stuff the 47v supply into the CPU killing it and the new PSU

I think you need to read up more on the basics of electronics as to date in this thread you have

Toasted an LCD
Cooked an H-Bridge
Fried a PIC

.... maybe a job in the catering trade would be more suitable based on the above

A picture is worth a thousand words so as Skimask suggested, a look at your schematic may give us the chance to help you resolve your problems. We have all been down the road of killing components, its how you build up experience. Expensive but it forces you to learn quickly !!!!