[Avrora] MSP430 / TelosB support for Avrora

Urs Hunkeler urs.hunkeler at epfl.ch
Tue Jan 18 10:17:07 PST 2011


Hi again,

I think the MSP430 handles the carry bit differently from other 
architectures (at least for subtraction). I am still not sure how 
exactly it works, but by inverting the meaning for subtractions (sub, 
subc and cmp instructions) I got the simulation of the TinyOS Blink 
application to work. Sparing you the boring output of the LEDs turning 
on and off, here is the important part :-)


==============================================================================
Simulated time: 96000000 cycles
=={ Energy consumption results for node 0 
}===================================
Node lifetime: 96000000 cycles,  12.0 seconds

CPU: 3.09506069775E-4 Joule
    Active: 2.160465E-4 Joule, 144031 cycles
    LPM0: 0.0 Joule, 0 cycles
    LPM1: 0.0 Joule, 0 cycles
    LPM2: 0.0 Joule, 0 cycles
    LPM3: 9.3459569775E-5 Joule, 95855969 cycles
    LPM4: 0.0 Joule, 0 cycles

Yellow: 0.038649600000000006 Joule
    off: 0.0 Joule, 49152000 cycles
    on: 0.038649600000000006 Joule, 46848000 cycles

Green: 0.038649600000000006 Joule
    off: 0.0 Joule, 49152000 cycles
    on: 0.038649600000000006 Joule, 46848000 cycles

Red: 0.038868734849999996 Joule
    off: 0.0 Joule, 48886382 cycles
    on: 0.038868734849999996 Joule, 47113618 cycles

Cheers,
Urs


More information about the Avrora mailing list