View Single Post
Old 07-12-2009, 08:05 PM   #1985 (permalink)
TheSGC
Master EcoModder
 
Join Date: Nov 2008
Location: Massachusetts, USA
Posts: 442
Thanks: 1
Thanked 60 Times in 45 Posts
Quote:
Originally Posted by MPaulHolmes View Post
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!
__________________
Civic EV http://2001-civic-ev.blogspot.com/
Solectria Force http://solectriaforce.blogspot.com/
  Reply With Quote