I have a problem with moving my P18f2550 to the breadboard. I've wrote a simple program for led blinking in mikroC.
Code: Select all
void main()
{
TRISB = 0x00;
PORTB = 0x00;
while (1)
{
LATB = 0x01;
Delay_ms(200);
LATB = 0x00;
Delay_ms(200);
}
}
The problem begins when I try to move MCU to the breadboard - the scheme doesn't works - the led just glows, not blinking (the scheme is in attachment). Of course, I connected +5V wire to VDD and 0V wire to both GNDs of MCU.
I don't understand, how to connect the crystal (or anything else) to MCU for correct working. I tried to move only the crystal to the breadboard (I added 22 pF capacitors and connected the crystal to A6 and A7 MCU pins directly) - everything works. Moved MCU to the breadboard too - doesn't works!
Please help me.