User Activity

Hello,Is it possible to set trigger when ADC converter reach a certain value? I mean that an interrupt rutine is called when ADC reach a user value. Can you please provide or refer a piece of code?Thank,Petr