Go to Post Thank you for Recycle Rush, the largest FLL game ever. - Dan Petrovic [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 09-02-2008, 15:52
3dude_2231's Avatar
3dude_2231 3dude_2231 is offline
no one messes with a Thingy =|
AKA: Menscher,Ran Menscher =]
FRC #2231 (Onyxtronix)
Team Role: Leadership
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Shoham, Israel
Posts: 233
3dude_2231 is a jewel in the rough3dude_2231 is a jewel in the rough3dude_2231 is a jewel in the rough
Send a message via MSN to 3dude_2231
interrupt enable

Hi all

been thinking about interrupts,
I didn't really dig into Kevin's code,
but if I'm not mistaken, enabling the interrupts is done by a '#define',
and is done only once, to affect the entire code, I might be mistaken here, but..

I don't want the IR affecting my teleop period's maneuvers, so.
I wanna disable the interrupts altogether, and this can be done by putting this:
INTCONbits.GIE = 0;
at the beginning of teleop code,
and this:
INTCONbits.GIE = 1;
at the beginning op autonomous mode.

now, some questions:
1. am I right?,
does the GIE (general interrupts enable) bit apply to all of the interrupts?
I havn't dealt with ints for a while now..

2.is that even necessary?
are the interrupts enabled in teleop anyway?

thanks in advance,
Ran.
__________________
Redefining the word "Rookie". (for 2 years now..)


Israeli Off Season Games: WINNERS!
check out this cool project I'm into..

 


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
Paly Robotics Team 8 laser-enable the disabled pstrapp General Forum 2 22-04-2007 17:53
Competition port Enable/disable switch box mpm967 Technical Discussion 3 10-01-2007 12:51
Autonomous enable/disable Culvan Van Li VEX 4 21-09-2006 13:03
enable interrupt Dean Programming 2 13-02-2005 07:37
Interrupt limitations? randomperson Programming 2 27-12-2003 21:40


All times are GMT -5. The time now is 19:15.

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