Comparador analogico

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
Carmelo
Posts: 64
http://meble-kuchenne.info.pl
Joined: Thu Oct 14, 2021 10:04 am
Has thanked: 21 times
Been thanked: 2 times

Comparador analogico

Post by Carmelo »

Hello,

I am trying to make a project with the pic 16F648A using the internal analog comparators that this pic model has.
The fact is that I am not able to configure it and I have also searched this forum for some type of basic example to be able to use those microcontroller options without finding anything.

Can someone tell me how to make that configuration and/or some small example of how to use it so I can understand it?
Thanks in advance.

BenR
Matrix Staff
Posts: 1882
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 484 times
Been thanked: 661 times

Re: Comparador analogico

Post by BenR »

Hello,

There's an example of enabling a comparator interrupt here using the custom interrupt.
https://www.flowcode.co.uk/wiki/index.p ... -_PICmicro

It should then just be a case of writing a control value to the CMCON register using a C icon.

Let us know how you're getting on.

Carmelo
Posts: 64
Joined: Thu Oct 14, 2021 10:04 am
Has thanked: 21 times
Been thanked: 2 times

Re: Comparador analogico

Post by Carmelo »

Gracias,
Eso ya lo había visto pero no comprendo la mayoría de las instrucciones que se indica por eso lo de ver un ejemplo completo

Post Reply