Hi ...
I'm new with Arduino and write a very simple blinking LED program. the problem is, when i simulate it in proteus, the result is ok. but it's not working in real time. the exact error is this :
////Simulation is not running in real time due to excessive CPU load.
I don't see any series resistor conected to the LED in your diagram. You MUST use a series resistor to limit current to a safe level for the Arduino. Try a 220 to 330 ohm resistor.
Edit: I also don't see any code tags around your code. When posting code or errors on these forums, you must use [code]code tags[/code].
(It's not too late to edit your post and fix this.)
I don't know Proteus or how accurately it simulates an Arduino (ATMEGA328P) processor but that problem looks more like the environment (PC?) you are running Proteus on is not powerful enough to allow it to simulate an Arduino Uno in real time. Can you tell Proteus that the clock rate on the Arduino is 1MHz (instead of the normal 16Mhz)
The warning does not address the behaviour of the Arduino code, but the execution of the simulation program itself.
When a simulation runs on a PC, every concurrently active program or service affects the execution of the simulation. You can try to terminate all other programs, and disable all asynchronous connections (LAN, WLAN...), turn off virus scanners and indexing service, to obtain a more "real" time behaviour of the simulation.
Or you create signal diagrams in the simulation, and look whether signal transitions occur at the right point on the time axis.
Proteus is notorious for bogus simulations - things like missing clocks, missing power and ground etc. all are known issues and drive people trying to learn nuts. Over in the CCS forums, they have a sticky at the top about "no more proteus questions" for just those reasons. Especially in the case of the Arduino, it is cheap enough to do it with real hardware and know that what you are doing is correct if it works.