void main(void){
PORTB = 0; //Removes initial value that PIC holds in PORTB
TRISB = 0; //This tells the PIC that PORTB should be output
do{
PORTB = 255; //255 = 11111111 in binary, so all LED's connected to PORTB glow
delay_ms(500); //Wait for 500ms
PORTB = 0; //Turn all LEDs off
delay_ms(500); //Wait for 500ms
}while(1); //Continuously do this
}
here we go...
this how u going to connect mclr
Hi,
Looking at this diagram:
**broken link removed**
I can tell, that you use either pins 1 and 3 or pins 2 and 4. Connect 1 pin to MCLR pin and the corresponding pin to gnd.
Hope this helps.
Tahmid.
But,on the protoboard two adjacent pins will get shorted,isn't it ??
---------- Post added at 22:03 ---------- Previous post was at 22:00 ----------
Thanks,n how to ground on the protoboard??
I have the general plastic protoboard . I don't know what it is called,but its a simple solderless breadboard.For that, you need to tell us which protoboard you use or give a circuit diagram.
I have the general plastic protoboard . I don't know what it is called,but its a simple solderless breadboard.
Okay, I thought you meant a dev board. In the protoboard, connect 1 pin to MCLR and the corresponding pin to ground. Ground would be the same point where the PIC ground is, pin 12 of the PIC.
Hope this helps.
Tahmid.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?