Ok, thanks for all of the replies, and sorry it wasn't plain text!! I understand the whole issue better!! Thanks for the replies. Dg On 9/5/02 12:43 AM, "Wouter van Ooijen" wrote: > Bits defined by mask (for use with ORing or ADDing): > > RBIF equ h'01' > INTF equ h'02' > TOIF equ h'04' > RBIE equ h'08' > INTE equ h'10' > TOIE equ h'20' > PEIE equ h'40' > GIE equ h'80' > > Bits defined by bit position (for use with BTS/BTFSS etc): > > GIE EQU H'0007' > EEIE EQU H'0006' > T0IE EQU H'0005' > INTE EQU H'0004' > RBIE EQU H'0003' > T0IF EQU H'0002' > INTF EQU H'0001' > RBIF EQU H'0000' > > Both have their purpose, but don't use one when the other is needed! > BTW to get the mask from the position: ( 1 << position ) > > succes > Wouter van Ooijen > > -- ------------------------------------------- > Van Ooijen Technische Informatica: www.voti.nl > consultancy, development, PICmicro products > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics