[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cascaded timers



Try like this to avoid compiler optimization :

*((volatile unsigned short *)R_TIMER01_DATA)



Akshay Adhikari wrote:

> i tried using cascade mode for the timers in kernel 2.4.14, running the
> combined 16-bit timer at 6250kHz to get better precision than 52 us. I
> know that kernel 2.4.19 has microsecond precision timing using the
> prescaler, so I should be able to get it using cascaded mode timers
> also. However, if I try reading (unsigned short)(*R_TIMER01_DATA), I get
> updated values only every 40us. What could be wrong?
>
> thanks,
> akshay