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

C164- DPPx: how to find data in Memory window???

Dear Sirs!
I would like to observe data in Memory window. For example this line of code was build from the compiler:

000002F4 F2F50AA2 MOV R5,DPP2:0x220A
Where content of DPP2 is '3'.

Does DPP2:0x220A means ( 3 <<14) | 0x220A ?
Result would be 0xE20A ??

F2F50AA2 says to me the Address 0xA20A will be read...(0x220A - 0x8000 = 0xA20A???)
in the memory window of the Debugger the contents of these addresses are just 0x00!?

How can I take a look at the right addresses?

Please write an answer to my Question!
hannes

Parents
  • Hi Bruno, hi Hannes,

    I am shamed, but enlighted.
    Bruno, no doubt anymore. It is all correct.
    I read with your explanation the users manual very carefully again.
    (I misinterpreted the fig.4-14 in the
    systems users manual XC167CI V1.1 2002
    page 4-34 ..... page 4-36,
    where bits 14 and 15 are shown separated)

    Correct formula by Bruno is

    ((DPP2 & 0x03FF) << 14) | (0x220A & 0x3FFF)
    
    ;-)

    BTW: Thanks for invest time and make a nice
    graphic, which make it clear to me.

    Stefan

Reply
  • Hi Bruno, hi Hannes,

    I am shamed, but enlighted.
    Bruno, no doubt anymore. It is all correct.
    I read with your explanation the users manual very carefully again.
    (I misinterpreted the fig.4-14 in the
    systems users manual XC167CI V1.1 2002
    page 4-34 ..... page 4-36,
    where bits 14 and 15 are shown separated)

    Correct formula by Bruno is

    ((DPP2 & 0x03FF) << 14) | (0x220A & 0x3FFF)
    
    ;-)

    BTW: Thanks for invest time and make a nice
    graphic, which make it clear to me.

    Stefan

Children
No data