> It looks like the idea is to trigger multiple single shot,
multichannel
> conversions instead? I'm working my way through the code, but any
> pointers are most welcome.

I *think* I've got it working. I've set ctl1.conseq = 1, ctl0.msc = 1
(single sequence of multiple channels, sampled "at once"), and added
back the call to enableConversion() in HplAdc12.conversionDone() to
trigger the next sequence:

case MULTI_CHANNEL:
  ...
    if (overflow || resultBufferLength == resultBufferIndex){
      ....
    } else call HplAdc12.enableConversion();

a) Am I correct in concluding the current code is broken?
b) If a, is this the correct fix? I think it should be possible to have
Timer A trigger the next sequence every /jiffies/ interval, without
having to call enableConversion() (which the current code seems to
imply).

Kind regards,
Michiel

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to