[Tinyos-help] ADC&MDA300

Michael Schippling schip at santafe.edu
Thu Jun 19 15:37:16 PDT 2008


I believe that interface is for the ADCs on the controller chip itself.
The MDA300 has it's own ADC which requires a different driver, that
apparently has not been ported to TOS2. You can find code for it in
the T1 contrib/xbow sensorboards directory. Also search this list
as it has been discussed recently.

MS

Antonio Prados Vilchez wrote:
> 
> Hi TinyOS users!!
> 
> I'm using a MDA300 connected to a MICAz to measure a voltage from a 
> sensor. I want to read from an ADC channel, so I'm using this command:
> 
> call Atm128AdcSingle.getData(ATM128_ADC_SNGL_ADC0, ATM128_ADC_VREF_AVCC, 
> ATM128_ADC_RIGHT_ADJUST, ATM128_ADC_PRESCALE);
> 
> I want to read from channel 0 with Vcc as the reference voltage. 
> However, I always get the same data from the ADC. I've checked the 
> sensor and it works properly, it gives variable voltages to the MDA300.
> 
> Am I using the right command to read from the ADC?
> 
> Thanks in advance
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Este mensaje se dirige exclusivamente a su destinatario, y puede 
> contener información confidencial sometida a secreto profesional, o cuya 
> divulgación esté legalmente prohibida.Cualquier opinión en él contenida 
> es exclusiva de su autor y no representa necesariamente la opinión de la 
> empresa. Si ha recibido este mensaje por error, le rogamos nos lo 
> comunique de forma inmediata por esta misma vía y proceda a su 
> eliminación, así como a la de cualquier documento adjunto al mismo. El 
> correo electrónico vía Internet no es seguro y no se puede garantizar 
> que no haya errores ya que puede ser interceptado, modificado, perdido o 
> destruido, o contener virus. Cualquier persona que se ponga en contacto 
> con nosotros por correo electrónico se considerará que asume estos riesgos.
> 
> This e-mail is addressed exclusively to the recipient and may contain 
> privileged information under a professional confidential agreement or it 
> may be against the law to disclose its contents. Any opinion contained 
> in it belongs exclusively to his/her author and does not necessarily 
> reflect the company's view. If you receive this e-mail in error, please 
> let us know immediately (by return e-mail) and proceed to its 
> destruction, as well as any document attached to it. The sending of 
> e-mails through the Internet is not safe and, therefore, error-free 
> communications cannot be guaranteed, as they can be intercepted, 
> changed, misled or destroyed or they might contain a virus. Any user 
> contacting us through e-mails shall be understood to be assuming these 
> risks.
> 
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


More information about the Tinyos-help mailing list