I have purchased my for PIC16F18875 and a PICKIT3 programmer.
I have everything set up and am able to compile and program no problem.
I am completely new to this and finding it a little confusing as to what works with what pic. I have found that :
TRISBbits.TRISB0 = 0; //Set Port B Bit 0 as output, works for me as PORTBbits etc
I managed to get the standard LED and LED flashing beginner programmes to work but I can not work out how to get the led to go on and off dependant on the input...
Basic programming question.
I have everything set up and am able to compile and program no problem.
I am completely new to this and finding it a little confusing as to what works with what pic. I have found that :
TRISBbits.TRISB0 = 0; //Set Port B Bit 0 as output, works for me as PORTBbits etc
I managed to get the standard LED and LED flashing beginner programmes to work but I can not work out how to get the led to go on and off dependant on the input...
Basic programming question.