Hello everyone. I have a circuit to control a dc motor using a DRV8837 and a PIC18F13K22. I am using the ECCP peripheral to output 2 pwm signals to control the motor speed and direction.
The circuit was working perfectly until one output stopped working. It won't output the pwm signal (RC2) and I tried writing to the bit in the latch register and port register, but it won't output a 1.
Does anybody know what could've cuased this issue? It has happened on 2 boards, I'm assuming there is some kind of voltage spike on that pin somehow.
I attach a schematic. Thanks in advance.
The circuit was working perfectly until one output stopped working. It won't output the pwm signal (RC2) and I tried writing to the bit in the latch register and port register, but it won't output a 1.
Does anybody know what could've cuased this issue? It has happened on 2 boards, I'm assuming there is some kind of voltage spike on that pin somehow.
I attach a schematic. Thanks in advance.
Attachments
-
46.5 KB Views: 55