12F675 comparator question.

Thread Starter

MaxHeadRoom

Joined Jul 18, 2013
28,617
With Comparitor CM2:CM0 = 001, and TRISIO/GPIO2 set to output, shouldn't GP2 automatically toggle whenever comparitor toggles?
Max.
 

Thread Starter

MaxHeadRoom

Joined Jul 18, 2013
28,617
Thanks, turned out to be a 'Programmer Error':oops:
Forgot about the shadow register used to overcome the R-M-W issue!
Max.
 

be80be

Joined Jul 5, 2008
2,072
These newer 8 pin chips are the bomb. But hate not using ones I have bunch of the RMW
Always sneaks up on you glade you got it figured.
The link I posted shows how to do a bunch of stuff with the comparator
I been messing for years with pic's but there lots of cool stuff I never would of thought it could do.

Need a op-amp it can be used as one. Cool stuff in the link.
 
Top