#include "io430.h" #define WAIT for (i=0 ; i<5000 ; i++) int main( void ) { unsigned int i; // Stop watchdog timer to prevent time out reset WDTCTL = WDTPW + WDTHOLD; P1DIR = 0x3D; while (1) { // P1OUT ^= 0x01; // toggle P1.0 avec exclusive-OR P1OUT = 0x24; // 0010.0100; WAIT; P1OUT = 0x20; // 0010.0000; WAIT; P1OUT = 0x38; // 0011.1000; WAIT; P1OUT = 0x18; // 0001.1000; WAIT; P1OUT = 0x1C; // 0001.1100; WAIT; P1OUT = 0x04; // 0000.0100; WAIT; } }