Hello. This is my first time messing with a microcontroller. I am trying this tutorial:
CIRCUIT: http://postimg.org/image/lasta61k1/
CHIP: 12f683
COMPILER: mikroC PRO for PIC v.6.6.1
I write the program just fine but the led does not work.
I might be doing some stupid mistakes but its my first time so don't shop my head of please.
code:
Mod edit: added code tags
CIRCUIT: http://postimg.org/image/lasta61k1/
CHIP: 12f683
COMPILER: mikroC PRO for PIC v.6.6.1

I write the program just fine but the led does not work.
I might be doing some stupid mistakes but its my first time so don't shop my head of please.
code:
C:
void main(void) {
TRISIO.B2 = 0;
while(1)
{
GPIO.B2 = 1;
Delay_ms(1000);
GPIO.B2 = 0;
Delay_ms(1000);
}
}
Last edited by a moderator: