Firmware for HB3 power control, using PIC24F08KA102