Jan. > What hardware (MCU, sensor) are you using ? - if you are reading > temperature, then there obviously should not be such spikes, so it > looks like there is a problem with reading data from the sensor. I > just re-ran Oscilloscope for all external sensors on telos and it > worked fine. Can you try this: > 1) increase the sample-hold-time (sht parameter of > msp430adc12_channel_config_t) - the exact value can be calculated > using a formula found in the "MSP430 User's Guide", for testing try to > gradually increase it. If this does not work, try:
I tried this, but to no avail.. :( basically the readings get lower as I increase the sample hold time, but the spikes still remain.. > 2) open tinyos-2.x/tos/chips/msp430/adc12/Msp430Adc12.h and comment > out "ADC12_P6PIN_AUTO_CONFIGURE". Now the Ax PINs are not > automatically configured, so you should (e.g. in Boot.booted()), do > this: > > call Port61.selectModuleFunc(); > call Port61.makeInput(); > > (in your configuration: > components HplMsp430GeneralIOC; > MyDriverC.Port61 -> HplMsp430GeneralIOC.Port61;) I'm not sure I understand - should I create a new driver myself? Based on an existing module? Akos _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
