Author |
Message |
Topic: v4.124 interrupts errors |
open_my
Replies: 2
Views: 5259
|
Forum: General CCS C Discussion Posted: Fri Sep 23, 2011 9:58 am Subject: v4.124 interrupts errors |
Read the datasheet. You have to read port B once to reset the input mismatch condition, otherwise, the interupt will be executed permanently.
input(PIN_B0) does it.
thank.
forget datasheet, th ... |
Topic: v4.124 interrupts errors |
open_my
Replies: 2
Views: 5259
|
Forum: General CCS C Discussion Posted: Fri Sep 23, 2011 9:08 am Subject: v4.124 interrupts errors |
yes, i use code
#include <16F887.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#INT_RB
void rb_isr()
{
output_toggle (PIN_D2) ;
IF ( ... |
|