Ok here is the simple code I am trying to run. It compiles but the output doesnt come on
#include <pic.h>
__config (PCMDIS & IESODIS & BORDIS & UNPROTECT & MCLRDIS & PWRTEN & WDTDIS & INTIO); //I don’t know what is supposed to go in this, which is the main problem.
main(){
PORTA = 0;
//CMCON0 = 7; //would not compile with these two statements in
//ANSEL = 0;
TRISA4 = 0;
TRISA5 = 0;
while(1==1){
RA4 = 1;
}
}
Do I need the config statement or not?




Bookmarks