This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Glitch when using nrfx_comp_init()

The NRFX COMP driver that is included in SDK 17.02 enables the COMP peripheral before configuring the other COMP registers. The product specification specifies: 

Before enabling the comparator via the ENABLE register, the following registers must be configured for the single-ended mode:

It has been observed that this has caused a glitch on the pin that is adjacent to the one assigned for the COMP peripheral. 

Related