User Tools

Site Tools


projects:xbr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
projects:xbr [2013/06/19 10:45]
mkucia [DIY Xbox 360 PC wireless receiver with MSP430 control]
projects:xbr [2013/06/19 10:47] (current)
mkucia [Description]
Line 105: Line 105:
     BCSCTL1 = CALBC1_1MHZ;​     BCSCTL1 = CALBC1_1MHZ;​
     DCOCTL = CALDCO_1MHZ;​     DCOCTL = CALDCO_1MHZ;​
- 
-    // 
-    // UART 
-    // 
-    setup_uart();​ 
  
     //     //
Line 129: Line 124:
  
     send(132);​ //​ LEDs active with power button on     send(132);​ //​ LEDs active with power button on
- while(--delay);​ +    ​while(--delay);​ // Delay for a while 
- send(0x085);​ //​ Start animation +    send(0x085);​ //​ Start animation 
- while(--delay);​ +    while(--delay);​ 
- while(--delay);​ +    while(--delay);​ 
- while(--delay);​ +    send(0x004);​ //​ Start sync
- while(--delay);​ +
- send(0x004);​ //​ Start sync+
  
- __delay_cycles(5000000);​ //​ Give some extra time to finish cmd send+    ​__delay_cycles(5000000);​ // Give some extra time to finish cmd send
  
- __disable_interrupt();​ //​ Turn off MCU +    ​__disable_interrupt();​ //​ Turn off MCU 
- _BIS_SR(LPM4_bits);​+    _BIS_SR(LPM4_bits);​
  
 } }
projects/xbr.txt · Last modified: 2013/06/19 10:47 by mkucia