Create separate functions for
each comparator configuration from Steps 1–2.
Write application code to call
each configuration setting, delay for settling time, and assign the result to
the corresponding IO pin. See Figure 6-1 for an overview of the software.