Ralph Merwin

56F8013, debugger access to peripheral registers

Discussion created by Ralph Merwin on Jul 3, 2007
Latest reply on Jul 9, 2007 by Ralph Merwin
I'm using CodeWarrior 56800E 8.1 (CodeWarrior 56800/E Hybrid Controllers version 7.1).   I'm trying to use the debugger's "Register" window to access peripheral registers in a 58F8013.

My code writes 16-bit values to the following registers:

    GPIOA_PEREN = 0xFFFF;
    GPIOA_DDIR = 0xFFFF;
    GPIOA_DATA = 0xFFFF;

But in the Debugger's Register window, I see:

    GPIOA_PER    0x00FF
    GPIOA_DDR   0x00FF
    GPIOA_DR      0x00FF

When I click on the values in the Register window and set them manually to any 16-bit value, the value always has the top 8 bits masked off.

Does the debugger have a bug, or is there a configuration option somewhere that I've missed?

Ralph

Outcomes