View Single Post
  #1   Spotlight this post!  
Unread 31-01-2008, 21:35
Neurovirus Neurovirus is offline
Registered User
FRC #0224
 
Join Date: Jan 2008
Location: Piscataway
Posts: 13
Neurovirus is an unknown quantity at this point
Red face Interrupts, limit switches, and IR board

For easyC Pro,

how can u get it, so that when the limit switch is pressed and outputting a 1 to the microcontroller, to stop the motor?
Right now I have

Set PWM3 to 195

Get Interrupt

Set PWM3 to 127

which doesn't even make the motor move, at all....

Also, I would like to know how to use the IR board. I'm guessing you'll have to use the interrupt block, which i don't even know how to use.

In the end, I need someone to explain the following:

-limit switch, implementing it with easyC
-the whole Interrupt block, what it exactly does, how can i make it to control a PWM output
- IR board, tho I think if i know how the interrupt block works, I could figure this out on my own