I want to use one comparator input in my program.

How can I find the output of my comparator?

This is my code: (it not ok)

CMCON 5 'comp. C2 in use rest is digital

puls var bit


'here is the problem this is not working

puls = CMCON.7 'bit 7 is the output of C2

How can I get the output of the comp.C2 in my programm?