|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |