|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Interrupts in the C18 3.0 software
I'm reading interrupts.c and I notice that Initialize_Int_N() sets a register (I think it's a register) to 0, which the comment says disables the interrupt.
Why is this done? Should I change that to a 1? If so, it seems like it would make more sense to have a Set_Interrupt_N(int) function so that the interrupts can be turned on and off. Anyway, why isn't this defaulted to 1 since users have to uncomment the ENABLE_INT_N macros for the function to "exist" in the first place? Maybe I'm just confused? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| where can i download the mplab c18 compiler v2.40 | amirjpl | Programming | 5 | 27-03-2007 20:37 |
| Does the camera code suits to all versions of MPLAB and C18? | razer | Programming | 3 | 04-01-2007 14:50 |
| Problem with interrupts on the PIC | Mike Betts | Programming | 7 | 16-12-2003 21:26 |
| Hints for the Edu Interrupts | JimWright949 | Programming | 0 | 02-12-2003 02:01 |
| Interrupts on the EDU-RC? | Andrew | Programming | 3 | 13-11-2003 23:16 |