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.
Comparador analogico
-
- Posts: 73
- http://meble-kuchenne.info.pl
- Joined: Thu Oct 14, 2021 10:04 am
- Has thanked: 27 times
- Been thanked: 2 times
-
- Matrix Staff
- Posts: 1912
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 496 times
- Been thanked: 674 times
Re: Comparador analogico
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel