View Single Post
  #7   Spotlight this post!  
Unread 04-02-2006, 11:23
nukem nukem is offline
Registered User
#1676
 
Join Date: Jan 2005
Location: Hillsdale, NJ
Posts: 43
nukem is on a distinguished road
Re: Gear Tooth Sensor

Well I did search around but no matter what I did the code I wrote would not work. I had code implemented very similar to b_mallerd and infact I just tried the code he showed and still nothing happens. I put the interupts initialization in User_Initialization() and uncommented the code for interrupts in InterruptHandlerLow(). I told it just to print out On whenever it sees the gear tooth(Im moving it by hand) but nothing prints on the screen. It seems nothing ever triggers the interrupt code(yes it is plugged in on Digial In 1). I thought I was doing something wrong but I guess not. Why isnt anything I do make the gear tooth sensor trigger?