Problem with MPLAB

Status
Not open for further replies.

ljcox

Well-Known Member
I've successfully written many PIC programmes but this my first time with the 16F684.

I have MPLAB 8.92.

I cannot clear INTCON, 0. This instruction does not anything.
bcf INTCON, 0 ;RBIF

If I use this
clrf INTCON the INTCON value changes from 0x09 to 0x01. I have tried various tricks but to no avail.

I even uninstalled MPLAB & then re-installed it.

This instruction does clear INTCON, 1

bcf INTCON, 1 ;INTF

I feel that there is a software problem with MPLAB as I can't see any reason why it does not clear INTCON, 0

Any assistance will be appreciated.
 
It is in the datasheet.. The RBIF can only be cleared when PORTB has been read.
Code:
ISR
   btfsc   INTCON.0
   goto   notpb
   movfw   PORTB
   bcf    INTCON.0
blah blah
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…