Bit masking: Bit masks are used to access specific bits in a byte of data. This is often useful as a method of iteration, for example when sending a byte of data serially out a single pin. In this example the pin needs to change it’s state from high to low for each bit in the byte to be transmitted .