Go to Post Now its up to us to show that what we shout from the high places is also true down on the street. - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit Switches ChrisR_522 Programming 2 25-01-2008 08:04
Limit Switches help Ianuser Programming 7 12-02-2007 23:36
limit switches stephenthe1 Programming 28 11-05-2005 16:37
Limit switches Team168 Programming 8 10-02-2003 16:22
Limit Switches/Pots Brett W Technical Discussion 3 28-01-2003 14:25


All times are GMT -5. The time now is 23:51.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi