Forgot your password?
No account? Register one!
September 27, 2006
Product SEN-11084 |
about 10 months ago
Never mind, I got it :) When switching the part to ‘active mode’ it starts acquiring samples at the rate specified by the ST-bits in ctrl_reg2, which has a 1 second minimum.
To issue an immediate acquisition, leave the device in ‘standby’ and issue a ‘one shot measurement’ by setting the OST-bit in crtl_reg1. It then samples as fast as the over sampling setting allows. Set the bit again each time you need a sample. If using the interrupt line, it’s set-and-forget, which is nice :)
I was wondering, is there a way to get data out of this sensor faster than 1Hz? I’ve programmed the example from page 12 of the datasheet (I chose interrupt driven acquisition). My sample rate seems to be limited by the ST bits in register CTRL_REG2 (0x27) because I can increase it by setting those differently, but I can’t get it below 1 second. What do I need to change if I want to sample at the rate given by the over-sampling bits in CTRL_REG1 (0x26)? I can post my code here if you like. Your help is much appreciated :)
No public wish lists :(