Wouter van Ooijen email (remove spam text)
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 )
Wouter van Ooijen
Van Ooijen Technische Informatica: http://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
In reply to: <B99C56ED.460E2email@example.com>
See also: www.piclist.com/techref/microchip/ints.htm?key=interrupt
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the