Sorry I can't help with the first dual UART question, but the
general way to access a controller pin in TOS is (example from
my own code, "MOTORnPWM" names are arbitrary):

    // assign names to various port, pin#
    TOSH_ASSIGN_PIN(MOTOR1PWM, B, 6);   // PB6
    TOSH_ASSIGN_PIN(MOTOR2PWM, B, 5);   // PB5

    // Set pin directions
    TOSH_MAKE_MOTOR1PWM_OUTPUT();
    TOSH_MAKE_MOTOR2PWM_OUTPUT();

    // clear values
    TOSH_CLR_MOTOR1PWM_PIN(); // Motor1 PWM
    TOSH_CLR_MOTOR2PWM_PIN(); // Motor2 PWM

    // set values
    TOSH_SET_MOTOR1PWM_PIN(); // Motor1 PWM
    TOSH_SET_MOTOR2PWM_PIN(); // Motor2 PWM


MS


lakshmi nair wrote:

Hello sir ,
i'm working in tinyos in MSP430 environment.My project is DATA
TRANSMISSION & RECEPTION VIA GPRS IN TINYOS ENVIRONMENT.
doubt 1: I wanted to know how to use both the UARTS at the same time . how to
implement " call HPLUART.get(data)" twice , so that i can receive from
both UARTs different data simultaneously.should i use   '.get's twice ?
doubt 2: how to clear a particular pin & set it HIGH . can we use TOSH_CLEAR_
OR TOSH_SET_ commands in the TestUartSimple program ? or is there any
other method ? pls help...
  i need this to make a pin DTR in MSP430F1611 LOW &am! p; then HIGH .
expecting a reply as soon as possible

Send instant messages to your online friends http://in.messenger.yahoo.com


------------------------------------------------------------------------

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

Reply via email to