Searching \ for '[PIC:] Interrupt on change' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ints.htm?key=interrupt
Search entire site for: 'Interrupt on change'.

Exact match. Not showing close matches.
PICList Thread
'[PIC:] Interrupt on change'
2004\03\14@183252 by Doctor Who

picon face
G'day all,
Sorry if this is a dupe - i messed up the [PIC] tag 1st time. :(

I'm xpting with a 16F877. Testing interrupt on change on RB4-7, like so :-

setint:
       nop
       BANK_1
       movlw    b'11000000'  ;
       movwf    OPTION_REG
       BANK_0
       movlw    b'11011000'  ;Enable the interrupts
       movwf    INTCON
fin:
       nop
       sleep
       nop
break03:
       goto     fin           ;Terminate the programme.

But it ain't responding  when I hit the asynch stimulus buttons in MATLAB
5.40. Er ... what am I missing?
Thanks - Brian

_________________________________________________________________
Personalise your mobile chart ringtones and polyphonics. Go to
http://ringtones.com.au/ninemsn/control?page=/ninemsn/main.jsp

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2004\03\14@195016 by Jinx

face picon face
> setint:
>         nop
>         BANK_1
>         movlw    b'11000000'  ;

Identifying bits would be helpful

;         1xxxxxxx   PORTB pullups disabled
;         x1xxxxxx   rising edge on RB0

>         movwf    OPTION_REG
>         BANK_0
>         movlw    b'11011000'  ;Enable the interrupts

;          bsf  gie
;          bsf  peie
;          bsf  inte
;          bsf  rbie

>         movwf    INTCON

Figure 12.9 of DS30292B (F877 manual) shows that PORTB
interrupts aren't part of the PEI system. Could that be causing
a problem in your set up ? I'm not familiar with MATLAB BTW

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

More... (looser matching)
- Last day of these posts
- In 2004 , 2005 only
- Today
- New search...