RB0 Interrupt on a PIC16f887
Posted: Tue Oct 19, 2010 7:19 pm
I am working on a project that reads the status of 6 inputs, performs mathematical calculations based on the number of high inputs and data stored in EEPROM, and displays the result on 3, 7 segment displays. A signal on RB0 then decreases the value by one with each rising edge pulse. This is set up as the RB0 interrupt.
I am using the internal RC clock.
All worked well, until I made a few adjustments (to remove leading zeros from the displays). When I came to re program the new code to the chip, I got the message that the device hadn't been erased, I ok'd this and the chip programmed ok.
Now when in circuit, the program stops when it gets to the RB0 INT stage.
I have moved the RB0 interrupt to various parts of my program but it still doesn't work.
I have tried erasing the chip manually prior to programming it, it still doesn't work.
Could the 2 problems be actually related?
Is it possible that my chip has developed a fault? (Unfortunately I do not have any spares to confirm this at the moment.)
Thanks in advance for any advice.
Carl.
I am using the internal RC clock.
All worked well, until I made a few adjustments (to remove leading zeros from the displays). When I came to re program the new code to the chip, I got the message that the device hadn't been erased, I ok'd this and the chip programmed ok.
Now when in circuit, the program stops when it gets to the RB0 INT stage.
I have moved the RB0 interrupt to various parts of my program but it still doesn't work.
I have tried erasing the chip manually prior to programming it, it still doesn't work.
Could the 2 problems be actually related?
Is it possible that my chip has developed a fault? (Unfortunately I do not have any spares to confirm this at the moment.)
Thanks in advance for any advice.
Carl.