yeah. I will check out with this.
Thanks a lot for your support.
Type: Posts; User: paddy611
yeah. I will check out with this.
Thanks a lot for your support.
Actually i have used that port pins as an I/O.
So i can not use interrupts.
Yes i am programming for PIC18F4520.
In normal case that function executes when alarm condition occurs.
But to avoid false triggering i need some delay, say 1 or 2 minutes and after that delay...
yeah. I have tried with that.
But it halts the next program execution as i need delay of around 1 to 2 minutes.
so that is why i am trying something with static value as mentioned in code,...
I am really sorry for the incomplete information.
I am using windows os and CCS compiler and I am looking for the delay of 1 minute.
Hello,
Please refer the function mentioned below.
void ringAlarm(int8* ai)
{
int i,j;
static int16 time_delay=10000;
time_delay=time_delay-1;