Uploaded by onefivefour on Jul 7, 2011
A simple example of four MSP430 Launchpads passing control to each other. (please don't mock my source code...)
// By Voltar. www.ironjungle.com June 2011
// Simple demonstration of multiple MSP430 Launchpads communicating
// with each other in a Master/Slave type relationship.
// All MSP430 are loaded with this exact same code.
// No limit to the number of MSP430 Launchpads.
// The Master Launchpad P1.0 (Red LED Output) is hardwired to
// P1.3 (S2 switch input) on the Slave Launchpad.
// The Master Lauchpad passes control to the adjacent Slave Launchpad.
// That Slave Launchpad then becomes a Master.
// Master MSP430
// -----------------
// | |
// | |
// | |
// | P1.6|---LED2
// | P1.0|---LED1 ------hardwired to P1.3 on the Slave MP430
// | |
#include msp430g2231.h
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Calm the dog...
P1DIR |= BIT0; // Set P1.0 to output direction (Red LED)
// P1.0 low also triggers Slave MSP430 to run
P1DIR |= BIT6; // Set P1.6 to output direction (Green LED) volatile long i;
P1OUT = BIT0; // Start with RED on, Green off on all LPs
for (;;)
{
while ((P1IN & BIT3));
// Wait for button press on P1.3
// We also wired P1.3 (INPUT) to P1.0 (Red LED Output)
// for the Slave MSP430. A low P1.0 triggers the Slave.
for (i=0; i=500; i++);
// A little delay after the trigger
P1OUT ^= BIT0 + BIT6;
// TOGGLE the two LEDs for (i=0; i=100000; i++);
/// This brings P1.0 Low on the Master MSP430
//and triggers the Slave MSP430 via P1.3. P1OUT ^= BIT0 + BIT6;
// TOGGLE the two LEDs and wait for trigger. } //endless loop. The little MSP430 never gets bored.
} //main
Category:
Tags:
License:
Standard YouTube License
-
0 likes, 0 dislikes
-
Created using YouTube Video Editor
-
Source videos:
Loading...
View attributions »
0:28
LaunchPad IR Receiverby MSP430Projects696 views
0:24
TI MSP430 Launchpad Rocket Launch!by iamthebaird146 views
0:55
Led tieby johnbradley2008286 views
0:22
【玩USB互動裝置】開發日誌-按下按鈕使LED燈閃爍 操作影片by gmaxsonic254 views
1:46
elevator control using stepper motor throug MSP430 Launchpadby tenetworld1,565 views
0:34
The "Get off the table, cat!" Projectby vihapuu118 views
0:50
MSP430 Launchpad & Nokia 5110 LCD Displayby matthew994456,598 views
0:43
Morse-code trainer for MSP430 Launchpadby r00tEd184 views
0:57
MSP430 Capacitive Touch Servo Motorsby EntropyMatrix833 views
1:15
Interfacing 7 segment display with MSP430 Launchpadby tenetworld1,149 views
0:47
LaunchPad, LCD display, keypadby MSP430Projects982 views
2:25
Interfacing 16x2 LCD with MSP430 Launchpadby tenetworld1,458 views
2:15
Ironman Arc Reactor using TI MSP430 LaunchPad and in circuit programmingby j4c0bi965 views
0:54
Servo Motor Control with MSP430 Launchpadby ToygarT2,191 views
0:24
LaunchPad with keypad and LCD part 2by MSP430Projects1,127 views
1:02
Ti launchpad 8bit thermometer using LEDsby style82222,817 views
0:29
MSP430 LaunchPad as serial to 8 seven segment LED display driverby MSP430Projects1,285 views
6:00
msp430-launchpad-demo-firmware.aviby themsp430launchpad1,137 views
0:26
TI MSP430 Launchpad + 74HC595 8bit Shift Registerby amorton123,075 views
4:33
Quick first project with MSP430 Launchpadby mrwilsox33,249 views
- Loading more suggestions...
Link to this comment:
All Comments (0)