| Welcome to AT91SAM Community Forum http://www.at91.com/samphpbb/ |
|
| I2C sensor polling rate http://www.at91.com/samphpbb/viewtopic.php?f=12&t=20497 |
Page 1 of 1 |
| Author: | stefsal [ Thu Nov 10, 2011 7:54 pm ] |
| Post subject: | I2C sensor polling rate |
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 |
|
| Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|



Forum