On Jun 20, 2006, at 4:40 AM, Roman Lim wrote:
> In this case the CC2420 code does not release the resource before
> going into stop mode?
>
> Vlado Handziski wrote:
>>
>> Before the MCU can go to LPM3, the USART needs to be disabled.
>> This should be done by the implicit power manager (TEP 115) using
>> AsyncStdControl of the HplMsp430UsartxP.nc once all the clients
>> release the USART. So, as long as the CC2420 code releases the
>> resource before going into stop mode, the getPowerState() should
>> work OK. Don't be confused by the UTXE0 and URXE0 names in the
>> check. URXE0 is the same location as USPIE0 so the check covers
>> potential use of SMCLK both in Uart and Spi mode.
>>
>> Vlado
Vlado, on USART0, shouldn't the arbiter be hooked up to an async
power manager, so this is done automatically? This is currently what
the atm128 I2C stack does.
I realize you can't do it on USART1, as you might receive packets
(need the explicit power management of SerialActiveMessageC), but it
makes sense to be able to power down the bus on USART0. Or is there a
problem with doing so?
Phil
It is connected! (check Msp430UsartShare0P) That's why I was suspecting that the CC2420 is not releasing properly. I'll take a closer look when I have more time and a JTAG at hand.
Vlado
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
