john blue
Advanced Member level 3
I have the following codes. But, proteus doesnt seems to work. Anyone can help? Thanks in advance.
Code:
#include <htc.h>
void main(){
CMCON = 0x01; //Outputs' Mode
TRISA0 = 1; // Configure as input pin for negative input of Comparator 1
TRISA3 = 1; // Configure as input pin for positive input of Comparator 1
TRISA4 = 0; // Output
TRISA1 = 1;
while(1){
}
}