Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: I2C sensor polling rate
PostPosted: Thu Nov 10, 2011 7:54 pm 
Offline

Joined: Fri Feb 18, 2011 1:56 pm
Posts: 8
I'm using some ST gyroscope sensor (L3G4200D) and I'm having polling rate issues.

I set its driver to poll at 100Hz (I also set the device directly thru i2cset so it's ok). What I get it's only some data flushing at around 4Hz (just observing the console output).

I tried changing the CONFIG_HZ of the system to 1000 (it was 100) and 1024 (I found somewhere it should be power of 2), nothing.

I'm wondering if it can be the gpio implementation of the i2c? I don't expect it because:
1) its frequency is still 100kHz, well above my numbers
2) I have another accelerometer (ST) which is working at the speed I want. Interestingly, on its same chip there's also a magnetometer, which is on the contrary experiencing the same issues as the gyro)

I feel like the issue can is more likely to be in the system rather than on the sensors.. any suggestion on what to look at?

Thank you


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: