| ??? 12/05/02 14:34 Read: times |
#33829 - RE: Problem with reading timers |
It seems that the timer overflows sometimes, on any overflow now I increase a variable called let's say H.
a[0]=H; a[1]=TH0; a[2]=TL0; time=(int*)a; afterwards,I put a few of the samples in an array called gem. for instance: unsigned long gem[11]; if (times<10) gem[times]=time; When I look at the array afterwards, all entries look like this>>> {0FFFFFFFF,0FFFFFFFF.....0FFFFFFFF} Anybody got a clue? |



