i used firstly the pic16f877a clock with clock speed 4Mhz & 8 Mhz
latter i tested on 16f887 with both 4mhz and 8 mhz
nothing
the mikroc pro has a sample led blinking (with first startup ) for 16f887
i build it's hex and and simulated nothing get
Sir i use only simulation .
simulator used Proteus ,oshonsoft's pic simulato & real pic simulator
what i do ?
please help me
thanking you
The most important piece of information in your response is the fact that
you are using the mikro-c example code and that doesnt work.
I know for certain that the code works therefore your issue is not originally a code issue.
If you are using a simulator it is either not configured correctly or cannot work
with mikro-c code. That is the first thing to check.
If you are using electronics then as betwixt says - post your circuit.
The example code you posted is incomplete so can't be diagnosed as someone mentioned. The processor speed is not the issue - your full code is. Chips need to be set up before being programmed. That is what is missing and being asked for.
Reading between the lines you are not familiar with the simulator or C code
or how to set them up - so start with basics.
Stick to the mikro-c example we all know does work - and post the setup for the specific simulator or dev board you are using and your full code.
Someone familiar with your specific simulator will then probably be able to spot
something you missed fairly easily.
But my best guess at this point is you havn't initialised the chip. You also need (as betwixt said) to name the chip - they all initialise slightly differently.
jack