This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PDATA in Simulator V7.08

When using PDATA, the memory viewer, watchpoint tabs, and command window contain zeros for the PDATA I'm using. When I step through the disassembled output, the Register window in the Project Workspace gets the correct non-zero values. The PDATA symbol (32 byte array) in question is getting placed at 0x40. I look up this symbol in the memory window by doing a x:symbol_name, symbol_name, or x:0x40. In the command window, I do a "d symbol_name".

Any ideas?

Parents
  • Is there anyway to set the PPAGE VTREG to default to the base of XRAM?

    From support doc 1848.htm

    Most devices allow PDATA access (MOVX @Rx)
    to only the first 256 bytes of XDATA (0x0000-
    0x00FF). On such devices, there is nothing
    to configure. You don't need to enable the
    PPAGEENABLE setting in the startup code
    since the PPAGE is fixed by the chip to 0.
    

    This is how I am using the Analog Devices '831 part works. I have 5 different '831 boards that run a windowed averaging routine which use R0 and R1 for indirect addressing. I'm using P2 for non-addressing uses.

    From ADI's ADuC831 datasheet (P2 behavior)
    As shown in Figure 38, the output drivers of Ports 2 are switchable
    to an internal ADDR and ADDR/DATA bus by an internal
    CONTROL signal for use in external memory accesses (as for
    Port 0). In external memory addressing mode (CONTROL = 1)
    the port pins feature push-pull operation controlled by the internal
    address bus (ADDR line). However, unlike the P0 SFR
    during external memory accesses, the P2 SFR remains unchanged.
    

Reply
  • Is there anyway to set the PPAGE VTREG to default to the base of XRAM?

    From support doc 1848.htm

    Most devices allow PDATA access (MOVX @Rx)
    to only the first 256 bytes of XDATA (0x0000-
    0x00FF). On such devices, there is nothing
    to configure. You don't need to enable the
    PPAGEENABLE setting in the startup code
    since the PPAGE is fixed by the chip to 0.
    

    This is how I am using the Analog Devices '831 part works. I have 5 different '831 boards that run a windowed averaging routine which use R0 and R1 for indirect addressing. I'm using P2 for non-addressing uses.

    From ADI's ADuC831 datasheet (P2 behavior)
    As shown in Figure 38, the output drivers of Ports 2 are switchable
    to an internal ADDR and ADDR/DATA bus by an internal
    CONTROL signal for use in external memory accesses (as for
    Port 0). In external memory addressing mode (CONTROL = 1)
    the port pins feature push-pull operation controlled by the internal
    address bus (ADDR line). However, unlike the P0 SFR
    during external memory accesses, the P2 SFR remains unchanged.
    

Children