Quote:
Originally Posted by MPaulHolmes
PIN B2 isn't resetting the overcurrent event, because the delay isn't long enough! Be right back!
|
Paul! I just got your e-mail and took a look through the code and was going to ask you to try using the same lines of code that you used to Initialize the pin to reset the current!
// Pulsing pin b2 low for a moment guarantees that the state of the flip flop in the hardware overcurrent
// shutdown circuit is known.
PORTB |= 0b00000100; // set pin b2 to 1.
Delay(5);
PORTB &= 0b11111011; // Set Pinb2 to 0.
Delay(5);
PORTB |= 0b00000100; // set it to 1.
That should guarantee the Reset in the NAND gates!