Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Excessive CPU load proteus

Status
Not open for further replies.

m.naveed

Newbie level 6
Joined
Dec 16, 2012
Messages
13
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Location
lahore
Activity points
1,363
Hi,
Proteus gives error message
"simulation not running in real time due to excessive CPU load"
but CPU is working at less then 50%.

Capture.GIF

I removed all other components and jus MCU and an oscilloscope is present for simulation but same problem.
code is simple and no compiler error.

Code:
while(1){
     delay_ms(10);
     if(amp!= amp_l){
           if(amp<amp_l){
           d = d + 1;
           PWM1_Set_duty(d);
           delay_ms(10);
           amp = ADC_Read (1);
           delay_ms(10);
           amp_l = ADC_Read(0);
                         }
           else{
           d = d + 1;
           PWM1_Set_Duty(d);
           delay_ms(10);
           amp = ADC_Read (1);
           delay_ms(10);
           amp_l = ADC_Read(0);

               } 
                     }
              }
 

I am not sure, you may need to give maximum CPU usage for the simulator software. Also one more thing, if the microcontroller clock is too much, then also the computer CPU may not be able to emulate it in real time.
 

Thanks,
I change priority of process PDS*32 and simulated without error but when simulated with other components again error I also checked affinity for this process to use all processors but same situation. I also changed MCU clock frequency to 1 MHz

I want to know if there is any other process involved in?
or any option in proteus to increase CPU usage?


Proteus is version 8
System is
CPU AMD Athlon 2.6GHz
with
Windows 7 64bit

Regards,
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top