HWA
Bare metal programming with style
Class _acb: analog comparator

A class _acb object is an analog comparator.

It is used in:

Interrupts

Class _acb objects can trigger the following IRQs:

Actions


configure:

Note When the analog comparator shares the analog multiplexer output with the ADC, the ADC must be turned off for the analog comparator to be able to use the analog multiplexer output.

hwa( configure, acmp0,
[ edge, falling
| rising
| both, ]
[ positive_input, (pin,ain0)
| bandgap, ]
[ negative_input, (pin,ain1)
| (pin,adc0..3) ] );

Registers

Hardware registers:

Logical registers:

hwa
#define hwa(...)
hwa( action, object [,...] ) stores an action for an object into a HWA context.
Definition: hwa_macros.h:552