MSP430 firmware for a valve controller board