|
With the currrent settings you have, VDAC = 4.080 V, there never
is a "count" + edge to the counter, so every capture returns 65535,
right ?
LCD row 0 you always display the compare value of 32767, that will
never change, right ? Unless you write the compare register with a new value.
On LCD row 1 you always write a 0, since your capture register always returns
a 65535.....
As an aside, does not seem you are using compare functionality for any reason ?
The supply to the part is 5V correct ? Reason I ask is there is a note
in specs at high power the comparator does NOT have common mode
to the rail, and if CM is violated we do not know if there is phase reversal
on its output, unless of course in this case you look at it and observe there
is phase reversal.
Regards, Dana.
|