Debugger: Simulator or emulator?

General discussion on mikroC PRO for 8051.
Post Reply
Author
Message
Danno
Posts: 15
Joined: 10 Jul 2014 05:09

Debugger: Simulator or emulator?

#1 Post by Danno » 13 Dec 2018 07:29

Hi,

I burnt to the AT89S8253 on the Easy 8051v6 development board the LED flashing example in the documentation:

Code: Select all


void main() {
 P0=0;                       //turn off LEDs on PORT0
 
 while(1) {
  P0=~P0;                    //toggle LEDs on PORT0
  
  Delay_ms(1000);            //1sec delay
 }
}

The debugger in mikroC PRO appears to be a simulator. Stepping over the code has no effect on what appears on the board, the LED's just continue to flash at 1 second intervals. Is there anyway to step through the code and see the effect of each instruction on the MCU, e.g. stepping over the instruction P0=~P0; the first time lights up the PORT0 LEDs on the board?

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Debugger: Simulator or emulator?

#2 Post by filip » 13 Dec 2018 09:59

Hi,

Unfortunately, only software simulator is implemented in the 8051 compilers.

Regards,
Filip.

Danno
Posts: 15
Joined: 10 Jul 2014 05:09

Re: Debugger: Simulator or emulator?

#3 Post by Danno » 13 Dec 2018 11:39

Hi Filip,

Actually I like the software simulation feature in mikroC PRO - it enables one to step through code without having to download to the actual device, thereby prolonging the life of the MCU by reducing the number of writes to FLASH. I just wanted to make sure emulation isn't available.

Regards,
Daniel

danogeorge
Posts: 8
Joined: 06 Mar 2019 07:27

Re: Debugger: Simulator or emulator?

#4 Post by danogeorge » 06 Mar 2019 07:37

Hi Daniel,

Could you please share the example? I'd greatly appreciate that. I've been searching for 8051V6 with MikroC pro for 8051
pro samples and found one in an archive. But when I try to download it, my anti vurus system thinks it's a malware document.

Update: deactivated the anti virus and downloaded the archived samples. But anyway, your example would be helpful too. Thanks.

Post Reply

Return to “mikroC PRO for 8051 General”