I am evaluating the Keil uVision2 tool with a C8051F010 target. I am attempting to read the timer0 registers as free running timers. I see no capture registers for timers 0 & 1 as there are for timer 2. Using the Keil environment, I am looking for a meathod (interupt free) of reading timer 0/1 that can capture both bytes of the timer without stoping the free running timer. (This is to port code designs from HC05/11 applications which make use of their free running timer capture feature.) Regards, Harold Kraus
Jon, I actually stumbled upon this recently using the PowerPC '860. It has a 64-bit (wow!) time base counter that is a wonderfully monotonically increasing counter that won't wrap for several millenia. Anyhow, this algorithm is described in the user manual. I didn't actually come up with it. But it does confirm your logic, eh? - Mark
Jon and Mark, Belated thanks. Harold