
Originally Posted by
ChrisHelvey
How does one come to the conclusion that CMCON = 7?
Am I correct in saying that the reason it is seven is because there are only the last three bits in the CMCON register that sets this? Looking at the data sheet I see:
7 6 5 4 3 2 1 0
19h CMCON0 — COUT — CINV CIS CM2 CM1 CM0
YEP,
%00000111 = 7 or I believe $07, I'm not real good with hex.
Actually, a better question for me is:
is CMCON a common "register" in all the PICs that have comparators?
Very likely, but I would never accuse all PICs of being the same about anything. The data sheet is your friend 
JS
Last edited by Archangel; - 25th July 2007 at 06:19.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks