View Single Post
  #3   Spotlight this post!  
Unread 04-01-2008, 02:57
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Interrupt issue with new code

Quote:
Originally Posted by billbo911 View Post
I think you are right. The error looks simple to me as well. I think the reason you aren't seeing the count change is because the code in your ISR to do the increment/decrement is commented out. It looks like it should work correctly if the whack whacks and whack star and star whacks were removed.

Code:
void Encoder_One_Tick(void)
{
	//if (ENCODER_ONE_DIRECTION)
	//{
		_countOne ++;
	/*}
	else
	{
		_countOne --;
	}*/
}

I commented that out when I realized I was having issues. The Bolded line is not commented out.
__________________
Eric Haskins KC9JVH