View Single Post
Old 07-13-2009, 12:44 PM   #1996 (permalink)
TheSGC
Master EcoModder
 
Join Date: Nov 2008
Location: Massachusetts, USA
Posts: 442
Thanks: 1
Thanked 57 Times in 43 Posts
Quote:
Originally Posted by MPaulHolmes View Post
Problems COMPLETELY SOLVED!!!!!! WILL EXPLAIN LATER! MUST GO TO SCHOOL!!!!!!!!! hahaha! ya!

Basically it's perfect now. No hardware changes necessary for anyone (well I had to replace my bad ATMega8 since I ruined it in the testing)!!!!!! Coding mistake!

OK, I'll just say it now:

I set PB2 as output, but then in InitPWM(), I accidentally set PB2 to input when I do this:

DDRB = 0b00000010;

I accidentally did = instead of:

DDRB |= 0b00000010;

So, PB2 was set as an input, so when I would try to use it as an output, since I would have to pulse it low, it would say to me, I WILL NOT GO LOW AND RESET THAT OVERCURRENT EVENT! I'M AN INPUT!!! It was really quite rude, actually.

EXPLANATION OF overcurrent diode et. al. soon! must go to school! ya!
There is nothing worse than a rude Pin not knowing it's proper place. Great that you fixed it!
__________________
Civic EV http://2001-civic-ev.blogspot.com/
Solectria Force http://solectriaforce.blogspot.com/
  Reply With Quote