The 8051 microcontroller contains a Boolean processor for single-bit operations using direct addressing. The carry bit is used as a single-bit accumulator. Boolean instructions referencing the carry bit are assembled as carry-specific instructions. The carry bit also has a mnemonic representation "CY" that can be used with non-carry-specific instructions. An example program uses Boolean instructions to compute the logical AND of two port bits and output the result to another port bit in a loop, with a worst-case delay of 11 CPU cycles.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
565 views2 pages
Boolean Instructions
The 8051 microcontroller contains a Boolean processor for single-bit operations using direct addressing. The carry bit is used as a single-bit accumulator. Boolean instructions referencing the carry bit are assembled as carry-specific instructions. The carry bit also has a mnemonic representation "CY" that can be used with non-carry-specific instructions. An example program uses Boolean instructions to compute the logical AND of two port bits and output the result to another port bit in a loop, with a worst-case delay of 11 CPU cycles.