First page Back Continue Last page Overview Graphics
Logic instructions can be used to set and clear bits and to check the state of individual bits.
Embedded programming typically requires many bit operations.
- Bits can be set or cleared to indicate the start or end of an events.
- Bits can be checked to determine the status of hardware.
Bit-wise logic instructions are rarely used in more typical programming applications such as business related programs. In embedded systems applications a high percentage of an overall program will likely consist of bit-wise logic instructions. Embedded applications are hardware intensive and individual bits (or groups of bits) must be checked, set or cleared to properly manipulate hardware.