just use like this
use a 16 bit counter its better, prescalar is always depend on the use of the counter. you can always compare with a preset value and the timer registers.
char node[4]={*some value:};
char preset....
char temp[4];
.
.
.
.
if(//pin is pressed)
{
//debounce delay
i = i++;
if(i==3)
i=0;
switch (i)
{
case 0:
for(j=0;j<=3;j++)
{
temp[j]=node[j];
}
case 1:
....
}
}
.
.
.
display tempr()
{
}
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?