17.1 CLC Setup

Programming the CLC module is performed by configuring the four stages in the logic signal flow. The four stages are:
  • Data selection
  • Data gating
  • Logic function selection
  • Output polarity

Each stage is set at run time by writing to the corresponding CLC Special Function Registers (SFR). This has an extra advantage of permitting logic reconfiguration on-the-fly during program execution.