Module lpc845_pac::acomp::ctrl[][src]

Expand description

Comparator control register

Structs

Field COMPEDGE reader - Comparator edge-detect status.

Field COMPEDGE writer - Comparator edge-detect status.

Field COMPSA reader - Comparator output control

Field COMPSA writer - Comparator output control

Field COMPSTAT reader - Comparator status. This bit reflects the state of the comparator output.

Field COMPSTAT writer - Comparator status. This bit reflects the state of the comparator output.

Field COMP_VM_SEL reader - Selects negative voltage input

Field COMP_VM_SEL writer - Selects negative voltage input

Field COMP_VP_SEL reader - Selects positive voltage input

Field COMP_VP_SEL writer - Selects positive voltage input

Comparator control register

Field EDGECLR reader - 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.

Field EDGECLR writer - 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.

Field EDGESEL reader - This field controls which edges on the comparator output set the COMPEDGE bit (bit 23 below):

Field EDGESEL writer - This field controls which edges on the comparator output set the COMPEDGE bit (bit 23 below):

Field HYS reader - 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.

Field HYS writer - 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.

Field INTENA reader - Must be set to generate interrupts.

Field INTENA writer - Must be set to generate interrupts.

Register CTRL reader

Register CTRL writer

Enums

Comparator output control

Selects negative voltage input

Selects positive voltage input

This field controls which edges on the comparator output set the COMPEDGE bit (bit 23 below):

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.