Hi Henrik
Thank you very much on your kind reply.
First – I am new in PBP programing and PIC use.
Here is what I am trying to work out.
I shold like to measure or detect the rising edge deterioration on square vawe signal.
First compartor is put On by low threshold voltage of 0,5V.The output of first comparator starts counter.
Second comparator is put On by high threshold level of 4,75V where edge deterioration is expected..Ther output of second comparator stop counter.
The counter value detect the level of rising edge deterioration.
First – is it idea about edge detecting OK?
Or anyone has better solution?
If idea is OK the Questions are:
How to set threshold level for COM1 and COM2 externaly.Is it enough only to make resistor network (as at OPM amplifiers) or Comparators have to be additionaly adjusted by code?
How to enable bouth comparators in PIC ?
Information about how to set appropriate registers should be of the great help.
Bookmarks