Write code to convert a decimal number to binary and manipulate bits for embedded firmware at Analog Devices.