26-09-2007, Oleg Verych (Gmane):
[]
> Aaarrhh. Software and softhardware sucks, didn't you know ?:)
I've checked KickStart, when i came to "wake up, Neo" thing, after
nearly three years of only-in-Linux life. What i've found, was this
stupid LED demo. Stupid, because PR says "the world's lowest power
MCU", hardware is good indeed; yet, what we see?
0.8 mA in the official MSP430 VirtuaLab.
____
// MSP430x2xx Demo - Software Toggle P1.0
//[...]
//
// A. Dannenberg
// Texas Instruments, Inc
// January 2006
// Built with IAR Embedded Workbench Version: 3.40A
#include "msp430.h"
int main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P1DIR |= 0x01; // Set P1.0 to output direction
for (;;)
{
volatile unsigned int i; // volatile to prevent optimization
P1OUT ^= 0x01; // Toggle P1.0 using exclusive-OR
i = 10000; // SW Delay
do i--;
while (i != 0);
}
}
----
The most simply example, but huge fuck up. Don't their programmers think,
before producing such things?
* 0.2 mA (4 times lower)
* encourages to study hardware first (and then C tricks, like `volatile')
* just simple (because we need the blinking, no matter how)
____
#include "msp430.h"
int main(void)
{
P1DIR |= 0x01; // Set P1.0 to output direction
P1OUT ^= 0x01; // Toggle P1.0 using exclusive-OR
do LPM2; while (1); // SAVE POWER!
}
----
Check it out. Site and login http://www.designmsp430.com/ ole...@6hchd9
Or with devices, if available.
I've sent a support request to fix that. Somebody answered something,
without any *discussion*. Somehow it was confirmed to be fixed. But i've
just downloaded "28 Sep 2007 zip", all is the same.
==
== Concerning closed source part of the communication protocol ==
==
Robert Kavaler had posted a code last year, covered by GPL with
permission (and no what so ever support requests from user disclaimer)
from TI:
http://article.gmane.org/gmane.comp.hardware.texas-instruments.msp430.gcc.user/5463
I thought, it will be good start for open source replacement. But have
anybody from active developers actually saw and tried that?
Content isn't available any more, but i have a copy, if somebody is
interested. I used this tool to check device connection, when i was
developing patches for the driver.
Worked with EZ430 USB stick just fine (i used only `dumpDevices'
option, though).
--
-o--=O`C
#oo'L O
<___=E M