Miklos Maroti ha scritto:
> Hi!
> 
> It should be between 0 and 1023, because the ADC is 10-bit on the
> IRIS. Either there is a problem in the driver that return the uint16_t
> value, or you have a problem in your application. You should toggle an
> LED if the uint16_t value in readDone is larger than 1024.
> 
> Miklos

Thanks for your help Miklos.
Nevertheless I know that with MDA300CA ADC is 12-bit (in fact 4096 =
2^12). However I solved it: the problem is tinyos version. With TinyOS
2.1.1 I get the wrong values (768-65295), instead with TinyOS 2.1.0 I
get the right values (3-4095). It is a mystery...
-- 
Francesco Ficarola <francesco.ficarola_at_gmail_dot_com>
Presidente LUG-PV (http://lugpv.netsons.org)
Mailing List: lugpv_at_lists.linux_dot_it

[GPG KeyID: 0xDBA99D92]
http://lugpv.netsons.org/gpgkeys/francesco_ficarola.asc

Il nuovo modo di fare ricerca: www.tradoogle.it

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to