X-Ray Detector MSP430 Code for BeEagleSat