On Dec 7, 2008, at 6:01 PM, solarwind wrote: > > http://pastebin.com/f286b7121 GIE = 0; //(INTCON[7]) Disable global interrupts RABIE = 1; //(INTCON[3]) Enable PORTA/PORTB change interrupt RABIF = 0; //(INTCON[0]) Change interrupt flag bit - clear C1ON = 0; //Disable comparators 1 and 2 C2ON = 0; Hmm. Those are sort of interesting, since the left-side symbols are single bits. Does HTC actually let you do that sort of thing? I mean, it's within what the PIC architecture allows via BSD/BCF instructions, and it's within the "extensions" I've seen for some C compilers on microcontrollers, but it's clearly not standard C, and it's something I'd be suspicious of without seeing it specifically used in an example in the manual, or without carefully looking at the include files and/or generated code... I also might tend to avoid this syntax as being less portable; it depends on how badly the code generator does with more standard C constructs like: INTCON |= INTCON_RABIE; or INTCON.RABIE = 1; BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist