Microchip® Advanced Software Framework

Quick Start Guide for the GLOC driver

This is the quick start guide for the Glue Logic Controller (GLOC), with step-by-step instructions on how to configure and use the driver for a specific use case.The code examples can be copied into e.g the main application loop or any other function that will need to control the GLOC module.

Use cases

GLOC Basic Usage

This use case will demonstrate how to initialize the GLOC module to match the truth table for simple glue logic functions.

Setup steps

Prerequisites

This module requires the following service

Code

Add this to the main loop or a setup function:

Workflow

  1. Initialize the GLOC module
  2. Enable the GLOC module
  3. Configure 4 inputs XOR truth table value in LUT0

Usage steps

The pin OUT0 will output according to lookup table 0 (LUT0) setting when pin IN0 to IN3 change.