pls help me to drive the analog comparator in c18 compiler
this program not working in proteos
why????????????????
this program not working in proteos
why????????????????
Rich (BB code):
#include <p18f8722.h>
#include <delays.h>
#pragma config OSC = HS
#pragma config PWRT = ON
#pragma config WDT = OFF
#pragma config LVP = OFF
#pragma config DEBUG = OFF
void main ()
{
CMCON=0x01;
TRISFbits.TRISF1=0;
TRISFbits.TRISF5=1;
TRISFbits.TRISF6=1;
TRISFbits.TRISF2=0;
TRISFbits.TRISF3=1;
TRISFbits.TRISF4=1;
TRISJbits.TRISJ0=0;
while (1);
}
Last edited by a moderator: