Checking Register content in MCU IDE 8051

Discussion in 'Embedded Systems and Microcontrollers' started by narendrav, Dec 8, 2012.

  1. narendrav

    Thread Starter New Member

    Dec 8, 2012
    1
    0
    hello.i have just started 8051 Microcontroller programming.i downloaded a software called MCU 8051 IDE.

    I wrote this line to store a hexadecimal number in register R5 of bank 0.
    mov R5,05

    It compiled but how do i check the contents of that particular register.so that i can verify that the number has been properly stored.
     
  2. tubeguy

    Well-Known Member

    Nov 3, 2012
    1,157
    197
    I'm not familiar with that particular IDE, but it will have a simulation screen to run the program which will display the registers R0-R7, memory, ports etc...
     
  3. absf

    Senior Member

    Dec 29, 2010
    1,492
    372
    I am not familiar with that 8051 simulator of yours too.:D

    My 8051 IDE looks like the one attached. You can open up the disassembly window, the register windows, internal/external Ram windows, IO windows etc.
    Then just load the program you entered in HEX or BIN and the program would be displayed on the disassembly window.

    Set the program counter to 0000H and single step the program and you can see changes on the registers/RAM/IO.

    HTH

    Allen
     
    Last edited: Dec 9, 2012
  4. Meixner

    Member

    Sep 26, 2011
    116
    21
    That wont work, the correct command is mov R5,#05H
     
Loading...