Hi vinod:
I read your questions and at this moment I am not pretty sure what you are trying to do, but following your question structure I submit some answers, please tell me if I misunderstand something.
1) Here I understand that you want to know if your signal must come from external pin or if you can get this reference signal internally, here I only know that for CMP you must use external pins to get the signal or use the signal from DAC.
2) You can supply any signal but you must consider electrical specifications for the pin, please review this information in 3.6.2 CMP and 6-bit DAC electrical specifications, I use as example the reference manual KL04P48M48SF1.
3) CMP module will only generate an interruption with rising or falling of the output signal from comparator, you will have to select carefully your signals in order to generate a change on CMP output and then generate a interruption.
4) In fact Vin1=VREFH and also ADC use VREF as reference
Please let me know if I understand your questions and if this information as been useful
Have a nice day,
Perla Moncada
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------