kotsam
Member level 1
Hi all ,
i would some help please , how can i can i count time between two interrupts , what i mean for example i can have configured interrupt :
btfsc PIR1, RCIF ; Serial Port Reception interrupt
i need to set counter to be 0 when the first interrupt occurs , and when i send something new (second interrupt occurs to know when its occurs), cuz what i want to do ; is if the time differnce between both interrupts less than 4ms to do function and when its greater than 4ms to do something else , how can i do that btw i'm using ASM
i would some help please , how can i can i count time between two interrupts , what i mean for example i can have configured interrupt :
btfsc PIR1, RCIF ; Serial Port Reception interrupt
i need to set counter to be 0 when the first interrupt occurs , and when i send something new (second interrupt occurs to know when its occurs), cuz what i want to do ; is if the time differnce between both interrupts less than 4ms to do function and when its greater than 4ms to do something else , how can i do that btw i'm using ASM