i am working on pic 18f4520 , i am trying to make a simple code as a start up for my full project .
i wrote i code just to switch the led on at PORTB.F7 ( pin 40 ) , it works in proteus but it is not working in real hardware .
also i tried to wrote a simple code in c language using geany editor , and it works in both proteus and hardware .
First you need to put ±10K resitor to MCLR pin in microcontroller to VCC!!! Its is called PULLUP Resistor!!! Many do not put this resistor and it does not work well in the real hardware!!!
Send source code and and real hardware schematic, and schematic proteus!!!
the program works once i connect the external oscillator .
do you know how to deal with the internal oscillator of the pic 18f4520 using mikroC .
thanks