RE:My Mouse is working on my System !!!
Posted: Fri Mar 26, 2004 12:00 am
hi gaf,
Actually what I meant by 2 secs was that it is damn fast (probably it is around a few millis or micros). Yea I have changed my r60 - Ill mail u my code. And I found another bug - If u see my Header file u will notice that I have MOBF bit as 0x32 instead of 32 or 1<<5.
Well u read the bytes one by one. So in effect u need 3 INT's to read a single movement set(3bytes). In that case the Controller gets time b/w two INT's - so it properly sets the OBF. So try doing this - Read 0x60 and print status immediately(OBF will not be clear), then wait for sometime and again read status and u will find OBF set - That means u could get all ur bytes in 1 INT.
In my ISR by just waiting a bit u could get 3 bytes - I think that is better.
waiting for ur response.
rgds
Gandalf
Actually what I meant by 2 secs was that it is damn fast (probably it is around a few millis or micros). Yea I have changed my r60 - Ill mail u my code. And I found another bug - If u see my Header file u will notice that I have MOBF bit as 0x32 instead of 32 or 1<<5.
Well u read the bytes one by one. So in effect u need 3 INT's to read a single movement set(3bytes). In that case the Controller gets time b/w two INT's - so it properly sets the OBF. So try doing this - Read 0x60 and print status immediately(OBF will not be clear), then wait for sometime and again read status and u will find OBF set - That means u could get all ur bytes in 1 INT.
In my ISR by just waiting a bit u could get 3 bytes - I think that is better.
waiting for ur response.
rgds
Gandalf