piclist 2002\09\05\043849a >
Thread: Interrupt bits
www.piclist.com/techref/microchip/ints.htm?key=interrupt
face picon face BY : 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 )

succes
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


<000201c254af$f5e99090$0b00a8c0@PAARD> 7bit

In reply to: <B99C56ED.460E2%ilinux@dkgomez.com>
See also: www.piclist.com/techref/microchip/ints.htm?key=interrupt
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Interrupt bits

month overview.

new search...