Texas Instruments MSP50C614 User Manual

Page 366

Advertising
background image

Implementation Details

5-66

wait(100);
oport(’B’, 0x00);
wait(100);
oport(’B’, 0xFF);
wait(100);
oport(’B’, 0x00);
wait(100);
oport(’B’, 0xFF);
wait(100);

}
else{ // If the correct inputs were given.

oport(’B’,0x00); // Light all LED’s
wait(5000); // Keep lit for 5 seconds ( unlock the door )
}

} // end for
return;
}

Advertising