

In this way we can store information about any thing in our microcontroller.

In this case the register has a 22 value in decimal format. If we have a logic "1" we have to raise the noumber "2" to the power representing the bit position or a 0 when the bit is a "0" logic and make the sum of all of them. If we want to convert this register binary value to decimal we would have to make the sum of each bit as we can see in the photo above. As you can see the LSB has a lower values than the MSB. LSB or LAST significant bit represents the lower values of the register and the MSB or most significant bit the higher. In the photo above we can see an 8 bit register. Registers are normally measured by the number of bits they can hold, for example, an "8-bit register" or a "32-bit register". In electronics, a flip-flop or latch is a circuit that has two stable states and can be used to store state information, in this case a logic "0" or "1". In digital electronics, especially computing, hardware registers are circuits typically composed of flip flops, often with many characteristics similar to memory. Here is a full list with all the register types. There are many types of registers like adress register, control, flags, etc. Arduino register control, timers and interruptions Arduino register format and control
