I tried downloading the files under tinyos-2.x-contrib > uoit >  
mda300ca and used some of the interfaces in my program in order to  
read the digital I/O lines. I keep getting the compiler error  
Digital.requestRead not connected in line 21 of DIOP.nc. What should  
this be connected to? Thanks for your help.

-- 
John

On Jun 23, 2010, at 11:17, Michael Schippling <[email protected]> wrote:

> There are various ways to read/write controller pins in TOS.
> I only use TOS1.x which had a set of macros:
>    TOSH_ASSIGN_PIN(PWM1Aout, B, 5);   // port,pin B5a == PWM1Aout
>    TOSH_MAKE_PWM1Aout_OUTPUT();
>    TOSH_CLR_PWM1Aout_PIN();
>    TOSH_SET_PWM1Aout_PIN();
> There are often modules to do the same thing with names like:
>    MSP430GeneralIO.nc
>
> Under T2 things have probably been more regularized...
>
> But you want to get to ports on a peripheral device, which
> may not be directly connected to controller pins. You'd have
> to examine the schematic to see how they are attached, and
> look for drivers for the board that might provide access.
> For instance, Xbow Moteworks has this intriguing file:
>    opt/MoteWorks/tos/sensorboards/mda300/DioM.nc
>
> MS
>
>
> [email protected] wrote:
>> I have a micaz mote with a mda300 sensor board. I was wondering how  
>> I take readings from the digital input lines (D7-D0). Do these  
>> lines correspond to a port on the Atmega chip and if so can I read  
>> the pin's state like I normally would on an atmel chip (i.e.  
>> i=PINB) or does TinyOS have a special function for handling this?  
>> Thank you for any help.
>> --- 
>> ---------------------------------------------------------------------
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to