hi johnie,
you should take a look at the msp430 user manual, chapter 17, to read
about configuring sampling; i'm not sure if the default mode will work
for your app. doc is ti name slau049f.pdf, iirc.
you should also examine tos/platforms/shimmer/shimmerAnalogSetupP.nc and
its component wiring file to understand where and how to make mods that
may accommodate your requirements.
i can't tell you the best way to go about this, but i'll make a couple
of suggestions: use the fastclock module (just wire it to softwareinit)
in your app to give you a much faster, cleaner smclk, which the adc
module uses for a sample clock; you'll need a scope to validate whatever
result you're seeing; and, you should use the analog expansion board to
make it easy to look at the signal that you're sampling.
finally, to answer your question, the adc module interrupts when a
conversion is complete. the default configuration in shimmeranalogsetup
uses the dma module to gobble this interrupt, as it's typically running
a sequence of conversions and so the app just gets one interrupt when
all is complete and in local memory.
i hope that this helps,
steve
On 05/18/2012 07:11 AM, Johnie Z wrote:
Hi all,
I'm trying to read some signal using ADC, but the signal will last
for very short term, 0.0002sec. How can I read it, is there any
interrupt in TinyOS we can use to get this work?
Regards,
Johnie
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users