Does anybody tried comparator module on PIC16F62X series? Did it work?
RagmaAraujo likes this post
RagmaAraujo wrote:I configured CMCON as one independent comparator (xx00x101). RA1 as reference voltage on Vin-; RA2 as variable input on Vin+. RB7 is configured as output to control a DC motor.
I apologize for any eventual mistakes on circuit or coding. The files (circuit and firmware) can be acessed on link below:
https://drive.google.com/drive/folders/1QVh8iav37_1CEitxpgPRQDspTm-sv5jf?usp=sharing
<comp name="COMP1" type="01" configregsA="CMCON"
interrupt="ACOMP"
pins="PORTA0,PORTA3,PORTA2"/>
<comp name="COMP2" type="02" configregsA="CMCON"
interrupt="ACOMP"
pins="PORTA2,PORTA1,PORTA4"/>
RagmaAraujo likes this post
arcachofo wrote:Thanks, I could reproduce the issue.
There is an error in file: data/PIC/p16F627/p16F627_perif.xml
Solved at Rev 1379.
You can fix it yourself easily in Simulide by clicking in "File explorer" tab (left panel), then open "Data" and find the file, double click and it will open in Editor.
arcachofo likes this post
Similar topics
Permissions in this forum:
You cannot reply to topics in this forum