I deleted your other post, in the future only post the same question once. No need to duplicate.
And
This forum deals with Pic Basic Pro. You may not get an answer for your question here.
I deleted your other post, in the future only post the same question once. No need to duplicate.
And
This forum deals with Pic Basic Pro. You may not get an answer for your question here.
Last edited by mackrackit; - 24th August 2014 at 12:53.
Dave
Always wear safety glasses while programming.
Hi,
As far as I can see comparator 1's output is on PortA.4 - not PortA.5.If portA.5=1 then ...
And, if you're not actually driving anything with the comparator you don't need to have it "connected" to the physical output. In order to get its state you might as well read CM1CON0.6 (the C1OUT bit).
/Henrik.
Thanks for your answer - the PortA.5 was a typo error - I use PortA.4 in my sorce - I do not need to use the pin to read the result - only intern in pic but when that don't work I was trying to get it on a pin so it was visable on my develebment board.
- can you tell me if my setup of the comparator look ok ?
Best regards Erik
Just want to tell you that I get it to work now - there was nothing wrong in my code but the PIC I used was damaged - when trying new pic all works fine - thanks again
Regrads Erik
Sorry for making two question, the first I make look like something went wrong - that why I posted again.
reg. pic basic pro: when I not use that sw to develobment, then I cannot use your forum ?
Best regards Erik Nielsen
Bookmarks