Ok, after spending ages on this ...and getting desperate, with one last push, I swapped everything around to use comparator2 instead - that one works fine.
Heaven knows what's going on with then C1IN+ pin 19 !!
Ok, after spending ages on this ...and getting desperate, with one last push, I swapped everything around to use comparator2 instead - that one works fine.
Heaven knows what's going on with then C1IN+ pin 19 !!
I guess I'm a little late, but ...
You had RA0 set to Output (C1IN+)
And RA2 set to Input (C1OUT)
TRISA.0 = 0
TRISA.2 = 1
<br>
DT
Thanks Darrel, but in my defence...
1. It was late (like 2.00am UK time).
2. I'm a noob
3. I'm stoopid!
I disagree.
You seem to be doing fine.
He who makes no mistakes, makes nothing.
(one of my signature quotes)
Anyhow, I've been playing with the tone detector I mentioned in the other thread.
Getting some interesting results, but nothing workable yet.
If that's where you're headed with the comparator, I may have some thoughts ... although, not very good one's.
<br>
DT
Thanks for the moral support!
re extracting frequency from an analogue using a comparator - well, as you know, I used a sig gen - it was good, I used a guitar...alas, as predicted the result were just too erratic. I'm not at the stage yet where I feel up to programming in sufficient 'intelligence' to cater for all the variations (averaging, disregarding counts outside a 'window etc'), but that's where I want to get to.
In the meantime, I've since changed to a PIC16F690 iiit's a challenging little PIC for someone at my level, but it has way more pins for me to play with (the last IC got on my nerves becuase I had to share some of the programming pins with the comparator pins - mucho switching back & forward)
I read that Application Note you linked me to in my other thread ....I'm still standing on the chair trying to catch the info that went way over my head!![]()
Last edited by ScaleRobotics; - 3rd September 2010 at 17:30. Reason: added app note AN257
Well I thought I would have something to say ... but I haven't got the darn thing working either.
Maybe I should go read that appnote again.
I'll use a butterfly net to catch the stuff wizzing over my head.
Haven't given up yet.
<br>
DT
Bookmarks