Struct lpc845_pac::acomp::ctrl::W [−][src]
pub struct W(_);
Expand description
Register CTRL
writer
Implementations
Bits 3:4 - This field controls which edges on the comparator output set the COMPEDGE bit (bit 23 below):
Bits 8:10 - Selects positive voltage input
Bits 11:13 - Selects negative voltage input
Bit 20 - Interrupt clear bit. To clear the COMPEDGE bit and thus negate the interrupt request, toggle the EDGECLR bit by first writing a 1 and then a 0.
Bit 21 - Comparator status. This bit reflects the state of the comparator output.
Bit 23 - Comparator edge-detect status.
Bits 25:26 - Controls the hysteresis of the comparator. When the comparator is outputting a certain state, this is the difference between the selected signals, in the opposite direction from the state being output, that will switch the output.